public abstract class EngineModuleInstance extends ModuleInstance<EngineModule> implements IHoldable
| Modifier | Constructor and Description |
|---|---|
protected |
EngineModuleInstance(EngineModule engineModule,
IModularEntity componentCarrier) |
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeNBT(net.minecraft.nbt.CompoundNBT nbt) |
abstract double |
getMaximumSpeed() |
PoweredState |
getPoweredState() |
protected void |
handleParticles(net.minecraft.particles.IParticleData particleData,
int runningAmount) |
abstract boolean |
isRunning() |
void |
onHeld() |
void |
onRelease() |
void |
push(float xPush,
float zPush) |
net.minecraft.nbt.CompoundNBT |
serializeNBT() |
void |
setPoweredState(PoweredState poweredState) |
applyInteraction, asItemStack, getCapability, getComparatorLevel, getDisplayName, getModularEntity, getModule, getModuleType, invalidateCapabilities, onActivatorPass, read, receiveClientUpdate, sendClientUpdate, tick, writeprotected EngineModuleInstance(EngineModule engineModule, IModularEntity componentCarrier)
public abstract boolean isRunning()
public abstract double getMaximumSpeed()
@Nonnull public PoweredState getPoweredState()
public void setPoweredState(@Nonnull
PoweredState poweredState)
protected void handleParticles(net.minecraft.particles.IParticleData particleData,
int runningAmount)
public net.minecraft.nbt.CompoundNBT serializeNBT()
serializeNBT in interface net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundNBT>serializeNBT in class ModuleInstance<EngineModule>public void deserializeNBT(net.minecraft.nbt.CompoundNBT nbt)
deserializeNBT in interface net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundNBT>deserializeNBT in class ModuleInstance<EngineModule>