Class Entity
java.lang.Object
org.variantsync.diffdetective.show.engine.Entity
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<Class<?>,
EntityComponent> private Vec2
private final AffineTransform
private double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(EntityComponent component) <T extends EntityComponent>
voidforComponent
(Class<T> type, Consumer<T> ifPresent) <T extends EntityComponent>
Tdouble
getZ()
void
remove
(EntityComponent component) void
setLocation
(Vec2 location) void
setZ
(double z) void
-
Field Details
-
location
-
z
private double z -
relativeTransform
-
components
-
-
Constructor Details
-
Entity
public Entity()
-
-
Method Details
-
add
-
remove
-
get
-
forComponent
-
getRelativeTransform
-
updateTransform
public void updateTransform() -
setLocation
-
getLocation
-
setZ
public void setZ(double z) -
getZ
public double getZ()
-