Package net.jcm.vsch.blocks.entity
Class CreativeThrusterBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.jcm.vsch.blocks.thruster.AbstractThrusterBlockEntity
net.jcm.vsch.blocks.entity.CreativeThrusterBlockEntity
- All Implemented Interfaces:
WrenchableBlock,ParticleBlockEntity,net.minecraftforge.common.capabilities.ICapabilityProvider,net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>,net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>,net.minecraftforge.common.extensions.IForgeBlockEntity,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>> -
Field Summary
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB -
Constructor Summary
ConstructorsConstructorDescriptionCreativeThrusterBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionprotected ThrusterEngineprotected doubleprotected Stringprotected net.minecraft.core.particles.ParticleOptionsprotected net.minecraft.core.particles.ParticleOptionsvoidonFocusWithWrench(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player) net.minecraft.world.InteractionResultonUseWrench(net.minecraft.world.item.context.UseOnContext ctx) protected voidspawnParticles(org.joml.Vector3d pos, org.joml.Vector3d direction) Methods inherited from class net.jcm.vsch.blocks.thruster.AbstractThrusterBlockEntity
getBrain, getCapability, getCurrentPower, getThrusterMode, getUpdatePacket, getUpdateTag, load, neighborChanged, saveAdditional, setBrain, setThrusterMode, spawnEvaporateParticles, tickForce, tickParticlesMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTMethods inherited from interface net.jcm.vsch.blocks.entity.template.ParticleBlockEntity
clientTick, serverTick
-
Constructor Details
-
CreativeThrusterBlockEntity
public CreativeThrusterBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
getPeripheralType
- Specified by:
getPeripheralTypein classAbstractThrusterBlockEntity
-
createThrusterEngine
- Specified by:
createThrusterEnginein classAbstractThrusterBlockEntity
-
getThrusterParticleType
protected net.minecraft.core.particles.ParticleOptions getThrusterParticleType()- Overrides:
getThrusterParticleTypein classAbstractThrusterBlockEntity
-
getThrusterSmokeParticleType
protected net.minecraft.core.particles.ParticleOptions getThrusterSmokeParticleType()- Overrides:
getThrusterSmokeParticleTypein classAbstractThrusterBlockEntity
-
getEvaporateDistance
protected double getEvaporateDistance()- Specified by:
getEvaporateDistancein classAbstractThrusterBlockEntity
-
spawnParticles
protected void spawnParticles(org.joml.Vector3d pos, org.joml.Vector3d direction) - Overrides:
spawnParticlesin classAbstractThrusterBlockEntity
-
onUseWrench
public net.minecraft.world.InteractionResult onUseWrench(net.minecraft.world.item.context.UseOnContext ctx) - Specified by:
onUseWrenchin interfaceWrenchableBlock- Overrides:
onUseWrenchin classAbstractThrusterBlockEntity
-
onFocusWithWrench
public void onFocusWithWrench(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player) - Specified by:
onFocusWithWrenchin interfaceWrenchableBlock- Overrides:
onFocusWithWrenchin classAbstractThrusterBlockEntity
-