Class EntityPart
java.lang.Object
me.arcademadness.omni_dungeon.components.EntityPart
- All Implemented Interfaces:
Iterable<EntityPart>
-
Constructor Summary
ConstructorsConstructorDescriptionEntityPart(Entity owner) EntityPart(Entity owner, @Nullable Visual visual) EntityPart(Entity owner, @Nullable Visual visual, com.badlogic.gdx.math.Rectangle collider) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(EntityPart child) voidforEachPart(Consumer<EntityPart> action) @Nullable com.badlogic.gdx.math.Rectangle@Nullable com.badlogic.gdx.math.Vector2com.badlogic.gdx.math.Vector2getOwner()@Nullable EntityPartfloatfloatgetTileX()floatgetTileY()@Nullable Visualfloatfloatfloatiterator()voidremoveChild(EntityPart child) voidsetCollider(@Nullable com.badlogic.gdx.math.Rectangle collider) voidsetLocalPosition(float x, float y) voidsetParent(@Nullable EntityPart parent) voidsetRotation(float rotation) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
EntityPart
-
EntityPart
-
EntityPart
-
-
Method Details
-
setParent
-
addChild
-
removeChild
-
getChildren
-
setLocalPosition
public void setLocalPosition(float x, float y) -
getLocalPosition
public com.badlogic.gdx.math.Vector2 getLocalPosition() -
setRotation
public void setRotation(float rotation) -
getRotation
public float getRotation() -
getWorldRotation
public float getWorldRotation() -
getWorldX
public float getWorldX() -
getWorldY
public float getWorldY() -
getTileX
public float getTileX() -
getTileY
public float getTileY() -
getVisual
-
setVisual
-
getCollider
@Nullable public @Nullable com.badlogic.gdx.math.Rectangle getCollider() -
getColliderCenter
@Nullable public @Nullable com.badlogic.gdx.math.Vector2 getColliderCenter() -
setCollider
public void setCollider(@Nullable @Nullable com.badlogic.gdx.math.Rectangle collider) -
getOwner
-
getParent
-
forEachPart
-
iterator
- Specified by:
iteratorin interfaceIterable<EntityPart>
-