Class MusicArea
- java.lang.Object
-
- de.extio.spacecraft.shared.model.entity.AbstractEntity
-
- de.extio.spacecraft.shared.model.entity.builtin.live.InfoEntity
-
- de.extio.spacecraft.shared.model.entity.builtin.live.AbstractScriptingEntity
-
- de.extio.spacecraft.shared.model.entity.builtin.live.scripting.MusicArea
-
- All Implemented Interfaces:
HasPosition2,HasPositionAndDimension2
public class MusicArea extends AbstractScriptingEntity
-
-
Field Summary
-
Fields inherited from class de.extio.spacecraft.shared.model.entity.builtin.live.AbstractScriptingEntity
custom0, custom1, custom2, custom3, custom4, radius
-
Fields inherited from class de.extio.spacecraft.shared.model.entity.AbstractEntity
LOGGER, serverRestrictedEntities, serverRestrictedEntitySurfaceBo
-
-
Constructor Summary
Constructors Constructor Description MusicArea()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisDisabled()voidlocalInit(AbstractEntityDef entityDef)Local initialization of transient fieldsprotected voidonClientCompositeEntityRadiusEntered(AbstractCompositeEntity compositeEntity)Client side: Called when any entity entered this.radius.protected voidonClientCompositeEntityRadiusLeft(UUID compositeEntityId)Client side: Called when any entity left this.radius.voidonClientFrame(boolean selected)Client side: Callback on each frame for general logicvoidsetDisabled(boolean disabled)-
Methods inherited from class de.extio.spacecraft.shared.model.entity.builtin.live.AbstractScriptingEntity
getCustom0, getCustom1, getCustom2, getCustom3, getCustom4, getLabel, getRadius, onClientDrawEntity, onClientTurnCompositeEntitiesInRadius, onServerCompositeEntityRadiusEntered, onServerCompositeEntityRadiusLeft, onServerTurnCompositeEntitiesInRadius, onServerTurnPass0, setCustom0, setCustom1, setCustom2, setCustom3, setCustom4, setLabel, setRadius, update
-
Methods inherited from class de.extio.spacecraft.shared.model.entity.builtin.live.InfoEntity
isDisplay
-
Methods inherited from class de.extio.spacecraft.shared.model.entity.AbstractEntity
create, createClientDrawTileImageBo, getDimension, getEntityDef, getEntityDefUUID, getEntityLayer, getEntityManager, getOrientation, getParentCompositeEntity, getPosition, getServerRestrictedEntities, getServerRestrictEntitiesLastUpdate, getServerRestrictEntitiesWalls, getTileset, getTilesetPosition, getUuid, isDirty, isLocalInit, localCopy, onClientAction, onClientActionMessage, onClientGenerateEntityDetails, onClientSelectedPointToEntity, onClientSelectedPointToNoClientEntityAction, onClientSelectedPointToWorldPos, onServerActionMessage, onServerTurnPass1, onServerTurnPass2PostComposites, serverCleanupRestrictedEntities, serverPrepareRestrictedEntities, serverRestrictEntity, serverTranslateEntityPass0, serverTranslateEntityPass1, setClientActions, setDirty, setEntityDef, setEntityManager, setLocalInit, setOrientation, setParentCompositeEntity, setPosition, setServerRestrictedEntities, setServerRestrictEntitiesLastUpdate, setServerRestrictEntitiesWalls, setUuid
-
-
-
-
Method Detail
-
localInit
public void localInit(AbstractEntityDef entityDef)
Description copied from class:AbstractEntityLocal initialization of transient fields- Overrides:
localInitin classAbstractScriptingEntity
-
onClientCompositeEntityRadiusEntered
protected void onClientCompositeEntityRadiusEntered(AbstractCompositeEntity compositeEntity)
Description copied from class:AbstractScriptingEntityClient side: Called when any entity entered this.radius. Feature is disabled when radius is 0- Overrides:
onClientCompositeEntityRadiusEnteredin classAbstractScriptingEntity
-
onClientCompositeEntityRadiusLeft
protected void onClientCompositeEntityRadiusLeft(UUID compositeEntityId)
Description copied from class:AbstractScriptingEntityClient side: Called when any entity left this.radius. Feature is disabled when radius is 0- Overrides:
onClientCompositeEntityRadiusLeftin classAbstractScriptingEntity
-
onClientFrame
public void onClientFrame(boolean selected)
Description copied from class:AbstractEntityClient side: Callback on each frame for general logic- Overrides:
onClientFramein classAbstractScriptingEntity
-
isDisabled
public boolean isDisabled()
-
setDisabled
public void setDisabled(boolean disabled)
-
-