Class AbstractWeaponEntity
- java.lang.Object
-
- de.extio.spacecraft.shared.model.entity.AbstractEntity
-
- de.extio.spacecraft.shared.model.entity.builtin.live.PhysicalEntity
-
- de.extio.spacecraft.shared.model.entity.builtin.live.StructureEntity
-
- de.extio.spacecraft.shared.model.entity.builtin.live.AbstractWeaponEntity
-
- All Implemented Interfaces:
HasEntityMod<WeaponEntityMod>,MeshConsumer,MeshWorker,ShipEditorEntityExecuteAware,StorableEntity,WeaponEntity,HasPosition2,HasPositionAndDimension2
public abstract class AbstractWeaponEntity extends StructureEntity implements WeaponEntity, MeshConsumer, ShipEditorEntityExecuteAware, HasEntityMod<WeaponEntityMod>
Base class for all weapon implementations
-
-
Field Summary
Fields Modifier and Type Field Description protected intclientDrawFireFramesprotected doubleclientLastDistanceOverrideprotected doubleclientLastOutputPersistentprotected longclientLastOverridesUpdatedprotected booleanclientSelectedprotected booleanclientShipEditorEntityExecutingprotected EntityModSupport<WeaponEntityMod>entityModSupportprotected doublelastAccuracyprotected doublelastDistanceprotected doublelastOutputprotected MeshConsumerSupportmeshConsumerSupportprotected CoordI2serverLastTargetDimensionprotected Class<? extends AbstractCompositeEntity>serverLastTargetTypeprotected CoordI2serverLastTargetWorldPosprotected booleanserverShipEditorEntityExecutingprotected WeaponEntityControllerDataweaponControllerData-
Fields inherited from class de.extio.spacecraft.shared.model.entity.builtin.live.StructureEntity
displayCooldown
-
Fields inherited from class de.extio.spacecraft.shared.model.entity.builtin.live.PhysicalEntity
clientEntityActionQueue, clientPoseAnimation, clientPoseTilesetPosition, enabled, entityAction, entityActionPending, entityActionPendingTurn, entityActionPlayer, entityActionTarget, entityActionTargetCoord, health, loggedInEntity, onDamageDestroyImmediately, onDamageSplit, onDamageSplitThreshold, pathFindingEntitySupport
-
Fields inherited from class de.extio.spacecraft.shared.model.entity.AbstractEntity
LOGGER, serverRestrictedEntities, serverRestrictedEntitySurfaceBo
-
-
Constructor Summary
Constructors Constructor Description AbstractWeaponEntity()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidabortAttack()protected abstract doublecalculateAccuracy(AbstractCompositeEntity parent, AbstractWeaponEntityDef entityDef, AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)doublecalculateBaseDamage()intcalculateCooldown()protected doublecalculateHealthFactor(PhysicalEntityDef entityDef)doublecalculateMaxDistance()doublecalculateMinDistance()protected doublecalculateRelativeVelocity(AbstractCompositeEntity parent, AbstractCompositeEntity targetComposite)abstract booleancanAttack(AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)protected booleancanAttackGeneral(AbstractCompositeEntity parent, AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)protected booleancheckWeaponDistance(AbstractWeaponEntityDef entityDef, AbstractCompositeEntity parent, AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)protected voidclientFireWeaponAccuracyAreaEffect(AbstractCompositeEntity parent, AbstractWeaponEntityDef entityDef, AbstractCompositeEntity targetCompositeEntity, CoordI2 targetEntityPos, boolean canAttack)voidcreate(UUID uuid, AbstractEntityDef entityDef, int entityDefIdx, UUID parentCompositeEntity)Central initialization of non-transient fields (usually on server side).EntityModSupport<WeaponEntityMod>getEntityModSupport()doublegetLastAccuracy()doublegetLastDistance()doublegetLastOutput()doublegetMeshConsumerActionAmount()doublegetMeshConsumerAmount()doublegetMeshConsumerAmountGranted()doublegetMeshConsumerAmountGrantedPrev()intgetMeshConsumerLane()intgetMeshConsumerLanePrev()doublegetMeshConsumerOneTimeAmountGranted()UUIDgetMeshConsumerType()intgetPassiveMeshConsumerLane()intgetPassiveMeshConsumerLanePrev()UUIDgetPassiveMeshConsumerType()CoordI2getTilesetPosition()WeaponEntityControllerDatagetWeaponControllerData()protected booleanignoreSelfHit(AbstractCompositeEntity parent, AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)booleanisControlAll()booleanisMeshConsumerResourceOut()booleanisMeshRedistributionSupported()booleanisServerShipEditorEntityExecuting()voidlocalCopy(AbstractEntity other)Local copy of transient fieldsvoidlocalInit(AbstractEntityDef entityDef)Local initialization of transient fieldsbooleanonClientAction(ClientEntityAction clientAction, AbstractCompositeEntity targetCompositeEntity, AbstractEntity targetEntity)Client side: Callback if the player selected an actionvoidonClientActionMessage(GameActionMessage message)Client side: Callback after a message has been received for this entityvoidonClientDrawConsoleControls(boolean controlsActive, List<ClientConsoleControlSet> consoleControls)Client side: Draws controls on the entity consolevoidonClientDrawEntityAction(List<RenderingBo> renderingBo, String action, boolean pending, CoordI2 subTileOffset)Client side: Draws a certain action the entity is executingvoidonClientDrawEntityActions(List<RenderingBo> renderingBo)Client side: Draws general effects that are related to actions the entity is executingvoidonClientFrame(boolean selected)Client side: Callback on each frame for general logicStringonClientGenerateEntityDetails()Client side: Returns details about this entity.voidonClientSelectedPointToEntity(AbstractCompositeEntity otherCompositeEntity, AbstractEntity other, int modifiers, List<ClientEntityAction> outClientActions)Client side: Callback when this entity is selected and cursor is pointing to another entityvoidonClientSelectedPointToNoClientEntityAction(int modifiers)Client side: Callback when this entity is selected and onClientSelectedPointToEntity + onClientSelectedPointToWorldPos did not set any possible actionvoidonClientShipEditorEntityExecute(boolean execute)voidonServerConsoleControlEvent(GameSession gameSession, UUID sender, String controlId, Object payload)Server side: Called when the user interacted with a control in the entity consolevoidonServerShipEditorEntityExecute(boolean execute)voidonServerTurnPass0(GameSession gameSession)Server side: Executes code on every server turn, main pass 1 of 2.voidonServerTurnPass1(GameSession gameSession)Server side: Executes code on every server turn, main pass 2 of 2.voidonServerTurnPass2PostComposites(GameSession gameSession)Server side: Executes code on every server turn, postprocessing pass after composite entity pass 2.protected voidpublishStarvedAction(GameSession gameSession, String reason)voidrequestAttack(CoordI2 worldPos)Requests weapon to attackvoidrequestAttack(UUID targetCompositeEntityId, CoordI2 targetEntityPos)voidserverAbortEntityAction(GameSession gameSession, boolean publishAsPendingAction)Server side: Aborts the current action the entity is executingprotected abstract voidserverAttack(GameSession gameSession, AbstractCompositeEntity composite, CoordI2 entityPos, Runnable onAttack)doubleserverCalculateEmEmission(GameSession gameSession)Server side: Calculates the EM emission of this entityvoidserverCleanupRestrictedEntities(AbstractCompositeEntity parent, GameSession gameSession)Server side: Cleans up restricted entity surfaces.protected abstract ViewPortEffectEventserverGenerateWeaponFireEffectEvent(GameSession gameSession, CoordI2 targetWorldPos, UUID compositeEntityId, CoordI2 entityPos)voidserverPrepareRestrictedEntities(UUID recipient, AbstractCompositeEntity parent, GameSession gameSession)Server side: Prepares RestrictedEntity instances to be presented instead of this entity to a player.protected abstract voidserverProcessFinalTarget(Random rand, GameSession gameSession, AbstractCompositeEntity parent, AbstractWeaponEntityDef entityDef, CoordI2 weaponWorldPos, org.apache.commons.lang3.mutable.MutableObject<AbstractCompositeEntity> finalTargetComposite, CoordI2 finalTargetPos, CoordI2 finalTargetWorldPos)voidserverPublishUpdateAll(GameSession gameSession, UUID sender)booleanserverRestrictEntity(UUID recipient, AbstractCompositeEntity parent, GameSession gameSession)Server side: Checks whether this entity should be restricted to the player recipient, i.e.booleanserverShipEditorEntityExecuteAutoMeshConsumption()voidserverTranslateEntityPass1(Edge2 rotation, CoordI2 posSrc, CoordI2 origDim, AbstractCompositeEntity parent, GameSession gameSession)Server side: Postprocesses rotation of the parent composite entity.voidsetControlAll(boolean all)voidsetLastAccuracy(double lastAccuracy)voidsetLastDistance(double lastDistance)voidsetLastOutput(double lastOutput)voidsetMeshConsumerActionAmount(double meshConsumerActionAmount)voidsetMeshConsumerAmount(double meshConsumerAmount)voidsetMeshConsumerAmountGranted(double amount)voidsetMeshConsumerAmountGrantedPrev(double meshConsumerAmountGrantedPrev)voidsetMeshConsumerLane(int meshConsumerLane)voidsetMeshConsumerLanePrev(int meshConsumerLanePrev)voidsetMeshConsumerOneTimeAmountGranted(double meshConsumerOneTimeAmount)voidsetMeshConsumerType(UUID meshConsumerType)voidsetPassiveMeshConsumerLane(int lane)voidsetPassiveMeshConsumerLanePrev(int lane)voidsetWeaponControllerData(WeaponEntityControllerData weaponControllerData)voidupdate(AbstractEntity other)Incremental update of non-transient fields (usually transferred from server)-
Methods inherited from class de.extio.spacecraft.shared.model.entity.builtin.live.StructureEntity
enableEntity, getCooldown, getTransformedEdges, isCooldownDisablesEntity, isOperational, onClientDrawEntity, onServerStorageExplode, setCooldown, setCooldownDisablesEntity
-
Methods inherited from class de.extio.spacecraft.shared.model.entity.builtin.live.PhysicalEntity
getEntityAction, getEntityActionPending, getEntityActionTarget, getEntityActionTargetCoord, getHealth, getLoggedInEntity, getOnDamageSplitThreshold, getPathFindingEntitySupport, getSubTileOffset, handleEnabledState, isEnabled, isOnDamageDestroyImmediately, isOnDamageSplit, nextClientEntityAction, onClientComplexConsoleControlEvent, onClientComplexConsoleControlEvent, onClientDamage, onServerActionMessage, onServerDamage, serverSetEntityAction, serverSplitOnDamage, setClientActions, setEnabled, setHealth, setLoggedInEntity, setOnDamageDestroyImmediately, setOnDamageSplit, setOnDamageSplitThreshold
-
Methods inherited from class de.extio.spacecraft.shared.model.entity.AbstractEntity
createClientDrawTileImageBo, getDimension, getEntityDef, getEntityDefUUID, getEntityLayer, getEntityManager, getOrientation, getParentCompositeEntity, getPosition, getServerRestrictedEntities, getServerRestrictEntitiesLastUpdate, getServerRestrictEntitiesWalls, getTileset, getUuid, isDirty, isLocalInit, onClientSelectedPointToWorldPos, serverTranslateEntityPass0, setDirty, setEntityDef, setEntityManager, setLocalInit, setOrientation, setParentCompositeEntity, setPosition, setServerRestrictedEntities, setServerRestrictEntitiesLastUpdate, setServerRestrictEntitiesWalls, setUuid
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.extio.spacecraft.shared.model.entity.builtin.live.StorableEntity
onServerStorageEject
-
-
-
-
Field Detail
-
meshConsumerSupport
protected MeshConsumerSupport meshConsumerSupport
-
weaponControllerData
protected WeaponEntityControllerData weaponControllerData
-
entityModSupport
protected EntityModSupport<WeaponEntityMod> entityModSupport
-
lastOutput
protected double lastOutput
-
lastDistance
protected double lastDistance
-
lastAccuracy
protected double lastAccuracy
-
clientSelected
protected transient boolean clientSelected
-
clientDrawFireFrames
protected transient int clientDrawFireFrames
-
clientLastDistanceOverride
protected transient double clientLastDistanceOverride
-
clientLastOverridesUpdated
protected transient long clientLastOverridesUpdated
-
clientLastOutputPersistent
protected transient double clientLastOutputPersistent
-
serverLastTargetDimension
protected transient CoordI2 serverLastTargetDimension
-
serverLastTargetWorldPos
protected transient CoordI2 serverLastTargetWorldPos
-
serverLastTargetType
protected transient Class<? extends AbstractCompositeEntity> serverLastTargetType
-
clientShipEditorEntityExecuting
protected transient boolean clientShipEditorEntityExecuting
-
serverShipEditorEntityExecuting
protected transient boolean serverShipEditorEntityExecuting
-
-
Method Detail
-
create
public void create(UUID uuid, AbstractEntityDef entityDef, int entityDefIdx, UUID parentCompositeEntity)
Description copied from class:AbstractEntityCentral initialization of non-transient fields (usually on server side). Is only called once in the whole life cycle of an entity.- Overrides:
createin classStructureEntity
-
localInit
public void localInit(AbstractEntityDef entityDef)
Description copied from class:AbstractEntityLocal initialization of transient fields- Overrides:
localInitin classStructureEntity
-
update
public void update(AbstractEntity other)
Description copied from class:AbstractEntityIncremental update of non-transient fields (usually transferred from server)- Overrides:
updatein classStructureEntity
-
localCopy
public void localCopy(AbstractEntity other)
Description copied from class:AbstractEntityLocal copy of transient fields- Overrides:
localCopyin classPhysicalEntity
-
onClientDrawEntityActions
public void onClientDrawEntityActions(List<RenderingBo> renderingBo)
Description copied from class:PhysicalEntityClient side: Draws general effects that are related to actions the entity is executing- Overrides:
onClientDrawEntityActionsin classPhysicalEntity
-
onClientDrawEntityAction
public void onClientDrawEntityAction(List<RenderingBo> renderingBo, String action, boolean pending, CoordI2 subTileOffset)
Description copied from class:PhysicalEntityClient side: Draws a certain action the entity is executing- Overrides:
onClientDrawEntityActionin classPhysicalEntity
-
onClientSelectedPointToEntity
public void onClientSelectedPointToEntity(AbstractCompositeEntity otherCompositeEntity, AbstractEntity other, int modifiers, List<ClientEntityAction> outClientActions)
Description copied from class:AbstractEntityClient side: Callback when this entity is selected and cursor is pointing to another entity- Overrides:
onClientSelectedPointToEntityin classPhysicalEntity
-
onClientSelectedPointToNoClientEntityAction
public void onClientSelectedPointToNoClientEntityAction(int modifiers)
Description copied from class:AbstractEntityClient side: Callback when this entity is selected and onClientSelectedPointToEntity + onClientSelectedPointToWorldPos did not set any possible action- Overrides:
onClientSelectedPointToNoClientEntityActionin classPhysicalEntity
-
onClientDrawConsoleControls
public void onClientDrawConsoleControls(boolean controlsActive, List<ClientConsoleControlSet> consoleControls)Description copied from class:PhysicalEntityClient side: Draws controls on the entity console- Overrides:
onClientDrawConsoleControlsin classPhysicalEntity
-
onClientAction
public boolean onClientAction(ClientEntityAction clientAction, AbstractCompositeEntity targetCompositeEntity, AbstractEntity targetEntity)
Description copied from class:AbstractEntityClient side: Callback if the player selected an action- Overrides:
onClientActionin classPhysicalEntity
-
onClientFrame
public void onClientFrame(boolean selected)
Description copied from class:AbstractEntityClient side: Callback on each frame for general logic- Overrides:
onClientFramein classPhysicalEntity
-
onClientActionMessage
public void onClientActionMessage(GameActionMessage message)
Description copied from class:AbstractEntityClient side: Callback after a message has been received for this entity- Overrides:
onClientActionMessagein classPhysicalEntity
-
onClientGenerateEntityDetails
public String onClientGenerateEntityDetails()
Description copied from class:AbstractEntityClient side: Returns details about this entity. These details are text-only and are shown on the left in the entity details view after selecting an entity.- Overrides:
onClientGenerateEntityDetailsin classPhysicalEntity
-
getTilesetPosition
public CoordI2 getTilesetPosition()
- Overrides:
getTilesetPositionin classPhysicalEntity
-
onServerConsoleControlEvent
public void onServerConsoleControlEvent(GameSession gameSession, UUID sender, String controlId, Object payload)
Description copied from class:PhysicalEntityServer side: Called when the user interacted with a control in the entity console- Overrides:
onServerConsoleControlEventin classPhysicalEntity
-
onServerTurnPass0
public void onServerTurnPass0(GameSession gameSession)
Description copied from class:AbstractEntityServer side: Executes code on every server turn, main pass 1 of 2. Executed after composite entities pass 0- Overrides:
onServerTurnPass0in classStructureEntity
-
onServerTurnPass1
public void onServerTurnPass1(GameSession gameSession)
Description copied from class:AbstractEntityServer side: Executes code on every server turn, main pass 2 of 2. Executed right after onServerTurnPass0 executed for all entities and before composite entities pass 1- Overrides:
onServerTurnPass1in classPhysicalEntity
-
onServerTurnPass2PostComposites
public void onServerTurnPass2PostComposites(GameSession gameSession)
Description copied from class:AbstractEntityServer side: Executes code on every server turn, postprocessing pass after composite entity pass 2. It is highly recommended to not change the main business state here but only do calculations based on that state- Overrides:
onServerTurnPass2PostCompositesin classAbstractEntity
-
serverRestrictEntity
public boolean serverRestrictEntity(UUID recipient, AbstractCompositeEntity parent, GameSession gameSession)
Description copied from class:AbstractEntityServer side: Checks whether this entity should be restricted to the player recipient, i.e. details about this entity (state, ...) are sent to this player or not. See also RestrictedEntitySurface- Overrides:
serverRestrictEntityin classStructureEntity
-
serverPrepareRestrictedEntities
public void serverPrepareRestrictedEntities(UUID recipient, AbstractCompositeEntity parent, GameSession gameSession)
Description copied from class:AbstractEntityServer side: Prepares RestrictedEntity instances to be presented instead of this entity to a player. See also RestrictedEntitySurface- Overrides:
serverPrepareRestrictedEntitiesin classAbstractEntity
-
serverCleanupRestrictedEntities
public void serverCleanupRestrictedEntities(AbstractCompositeEntity parent, GameSession gameSession)
Description copied from class:AbstractEntityServer side: Cleans up restricted entity surfaces. See also See also RestrictedEntitySurface- Overrides:
serverCleanupRestrictedEntitiesin classAbstractEntity
-
serverTranslateEntityPass1
public void serverTranslateEntityPass1(Edge2 rotation, CoordI2 posSrc, CoordI2 origDim, AbstractCompositeEntity parent, GameSession gameSession)
Description copied from class:AbstractEntityServer side: Postprocesses rotation of the parent composite entity. This also means that this entity is now at a different position in the tile grid- Overrides:
serverTranslateEntityPass1in classPhysicalEntity
-
canAttack
public abstract boolean canAttack(AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)
- Specified by:
canAttackin interfaceWeaponEntity
-
serverProcessFinalTarget
protected abstract void serverProcessFinalTarget(Random rand, GameSession gameSession, AbstractCompositeEntity parent, AbstractWeaponEntityDef entityDef, CoordI2 weaponWorldPos, org.apache.commons.lang3.mutable.MutableObject<AbstractCompositeEntity> finalTargetComposite, CoordI2 finalTargetPos, CoordI2 finalTargetWorldPos)
-
serverAttack
protected abstract void serverAttack(GameSession gameSession, AbstractCompositeEntity composite, CoordI2 entityPos, Runnable onAttack)
-
serverGenerateWeaponFireEffectEvent
protected abstract ViewPortEffectEvent serverGenerateWeaponFireEffectEvent(GameSession gameSession, CoordI2 targetWorldPos, UUID compositeEntityId, CoordI2 entityPos)
-
calculateAccuracy
protected abstract double calculateAccuracy(AbstractCompositeEntity parent, AbstractWeaponEntityDef entityDef, AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)
-
calculateHealthFactor
protected double calculateHealthFactor(PhysicalEntityDef entityDef)
-
calculateRelativeVelocity
protected double calculateRelativeVelocity(AbstractCompositeEntity parent, AbstractCompositeEntity targetComposite)
-
calculateBaseDamage
public double calculateBaseDamage()
- Specified by:
calculateBaseDamagein interfaceWeaponEntity
-
calculateMinDistance
public double calculateMinDistance()
- Specified by:
calculateMinDistancein interfaceWeaponEntity
-
calculateMaxDistance
public double calculateMaxDistance()
- Specified by:
calculateMaxDistancein interfaceWeaponEntity
-
calculateCooldown
public int calculateCooldown()
- Specified by:
calculateCooldownin interfaceWeaponEntity
-
requestAttack
public void requestAttack(CoordI2 worldPos)
Description copied from interface:WeaponEntityRequests weapon to attack- Specified by:
requestAttackin interfaceWeaponEntity- Parameters:
worldPos- World position to attack. There has to be an entity at this position.
-
requestAttack
public void requestAttack(UUID targetCompositeEntityId, CoordI2 targetEntityPos)
- Specified by:
requestAttackin interfaceWeaponEntity
-
abortAttack
public void abortAttack()
- Specified by:
abortAttackin interfaceWeaponEntity
-
isControlAll
public boolean isControlAll()
- Specified by:
isControlAllin interfaceWeaponEntity
-
setControlAll
public void setControlAll(boolean all)
- Specified by:
setControlAllin interfaceWeaponEntity
-
serverAbortEntityAction
public void serverAbortEntityAction(GameSession gameSession, boolean publishAsPendingAction)
Description copied from class:PhysicalEntityServer side: Aborts the current action the entity is executing- Overrides:
serverAbortEntityActionin classPhysicalEntity
-
canAttackGeneral
protected boolean canAttackGeneral(AbstractCompositeEntity parent, AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)
-
ignoreSelfHit
protected boolean ignoreSelfHit(AbstractCompositeEntity parent, AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)
-
checkWeaponDistance
protected boolean checkWeaponDistance(AbstractWeaponEntityDef entityDef, AbstractCompositeEntity parent, AbstractCompositeEntity targetComposite, CoordI2 targetEntityPos)
-
publishStarvedAction
protected void publishStarvedAction(GameSession gameSession, String reason)
-
serverPublishUpdateAll
public void serverPublishUpdateAll(GameSession gameSession, UUID sender)
-
clientFireWeaponAccuracyAreaEffect
protected void clientFireWeaponAccuracyAreaEffect(AbstractCompositeEntity parent, AbstractWeaponEntityDef entityDef, AbstractCompositeEntity targetCompositeEntity, CoordI2 targetEntityPos, boolean canAttack)
-
serverShipEditorEntityExecuteAutoMeshConsumption
public boolean serverShipEditorEntityExecuteAutoMeshConsumption()
- Specified by:
serverShipEditorEntityExecuteAutoMeshConsumptionin interfaceShipEditorEntityExecuteAware- Returns:
- true if the mesh consumer action amount should be automatically claimed
-
onClientShipEditorEntityExecute
public void onClientShipEditorEntityExecute(boolean execute)
- Specified by:
onClientShipEditorEntityExecutein interfaceShipEditorEntityExecuteAware
-
onServerShipEditorEntityExecute
public void onServerShipEditorEntityExecute(boolean execute)
- Specified by:
onServerShipEditorEntityExecutein interfaceShipEditorEntityExecuteAware
-
serverCalculateEmEmission
public double serverCalculateEmEmission(GameSession gameSession)
Description copied from class:PhysicalEntityServer side: Calculates the EM emission of this entity- Overrides:
serverCalculateEmEmissionin classPhysicalEntity
-
getMeshConsumerLane
public int getMeshConsumerLane()
- Specified by:
getMeshConsumerLanein interfaceMeshConsumer
-
setMeshConsumerLane
public void setMeshConsumerLane(int meshConsumerLane)
- Specified by:
setMeshConsumerLanein interfaceMeshConsumer
-
getMeshConsumerAmount
public double getMeshConsumerAmount()
- Specified by:
getMeshConsumerAmountin interfaceMeshConsumer
-
setMeshConsumerAmount
public void setMeshConsumerAmount(double meshConsumerAmount)
- Specified by:
setMeshConsumerAmountin interfaceMeshConsumer
-
getMeshConsumerActionAmount
public double getMeshConsumerActionAmount()
- Specified by:
getMeshConsumerActionAmountin interfaceMeshConsumer
-
setMeshConsumerActionAmount
public void setMeshConsumerActionAmount(double meshConsumerActionAmount)
- Specified by:
setMeshConsumerActionAmountin interfaceMeshConsumer
-
getMeshConsumerLanePrev
public int getMeshConsumerLanePrev()
- Specified by:
getMeshConsumerLanePrevin interfaceMeshConsumer
-
setMeshConsumerLanePrev
public void setMeshConsumerLanePrev(int meshConsumerLanePrev)
- Specified by:
setMeshConsumerLanePrevin interfaceMeshConsumer
-
getMeshConsumerType
public UUID getMeshConsumerType()
- Specified by:
getMeshConsumerTypein interfaceMeshConsumer
-
setMeshConsumerType
public void setMeshConsumerType(UUID meshConsumerType)
-
getPassiveMeshConsumerType
public UUID getPassiveMeshConsumerType()
- Specified by:
getPassiveMeshConsumerTypein interfaceMeshConsumer
-
getPassiveMeshConsumerLane
public int getPassiveMeshConsumerLane()
- Specified by:
getPassiveMeshConsumerLanein interfaceMeshConsumer
-
setPassiveMeshConsumerLane
public void setPassiveMeshConsumerLane(int lane)
- Specified by:
setPassiveMeshConsumerLanein interfaceMeshConsumer
-
getPassiveMeshConsumerLanePrev
public int getPassiveMeshConsumerLanePrev()
- Specified by:
getPassiveMeshConsumerLanePrevin interfaceMeshConsumer
-
setPassiveMeshConsumerLanePrev
public void setPassiveMeshConsumerLanePrev(int lane)
- Specified by:
setPassiveMeshConsumerLanePrevin interfaceMeshConsumer
-
getMeshConsumerAmountGranted
public double getMeshConsumerAmountGranted()
- Specified by:
getMeshConsumerAmountGrantedin interfaceMeshConsumer
-
setMeshConsumerAmountGranted
public void setMeshConsumerAmountGranted(double amount)
- Specified by:
setMeshConsumerAmountGrantedin interfaceMeshConsumer
-
getMeshConsumerOneTimeAmountGranted
public double getMeshConsumerOneTimeAmountGranted()
- Specified by:
getMeshConsumerOneTimeAmountGrantedin interfaceMeshConsumer
-
setMeshConsumerOneTimeAmountGranted
public void setMeshConsumerOneTimeAmountGranted(double meshConsumerOneTimeAmount)
- Specified by:
setMeshConsumerOneTimeAmountGrantedin interfaceMeshConsumer
-
isMeshConsumerResourceOut
public boolean isMeshConsumerResourceOut()
- Specified by:
isMeshConsumerResourceOutin interfaceMeshConsumer
-
getMeshConsumerAmountGrantedPrev
public double getMeshConsumerAmountGrantedPrev()
- Specified by:
getMeshConsumerAmountGrantedPrevin interfaceMeshConsumer
-
setMeshConsumerAmountGrantedPrev
public void setMeshConsumerAmountGrantedPrev(double meshConsumerAmountGrantedPrev)
- Specified by:
setMeshConsumerAmountGrantedPrevin interfaceMeshConsumer
-
getLastOutput
public double getLastOutput()
- Specified by:
getLastOutputin interfaceWeaponEntity
-
setLastOutput
public void setLastOutput(double lastOutput)
-
isMeshRedistributionSupported
public boolean isMeshRedistributionSupported()
- Specified by:
isMeshRedistributionSupportedin interfaceMeshConsumer
-
getLastDistance
public double getLastDistance()
- Specified by:
getLastDistancein interfaceWeaponEntity
-
setLastDistance
public void setLastDistance(double lastDistance)
-
getLastAccuracy
public double getLastAccuracy()
- Specified by:
getLastAccuracyin interfaceWeaponEntity
-
setLastAccuracy
public void setLastAccuracy(double lastAccuracy)
-
getWeaponControllerData
public WeaponEntityControllerData getWeaponControllerData()
-
setWeaponControllerData
public void setWeaponControllerData(WeaponEntityControllerData weaponControllerData)
-
isServerShipEditorEntityExecuting
public boolean isServerShipEditorEntityExecuting()
-
getEntityModSupport
public EntityModSupport<WeaponEntityMod> getEntityModSupport()
- Specified by:
getEntityModSupportin interfaceHasEntityMod<WeaponEntityMod>
-
-