Class ConduitBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.ConduitBlockEntity
- All Implemented Interfaces:
ICapabilityProvider
,ICapabilityProviderImpl<BlockEntity>
,IForgeBlockEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
BlockEntity.ComponentHelper, BlockEntity.DataComponentInput
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate float
private static final int
private LivingEntity
private UUID
private static final int
private boolean
private boolean
private static final int
private static final int
private static final int
private long
private static final float
int
private static final Block[]
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
animationTick
(Level p_155419_, BlockPos p_155420_, List<BlockPos> p_155421_, Entity p_155422_, int p_155423_) private static void
applyEffects
(Level p_155444_, BlockPos p_155445_, List<BlockPos> p_155446_) static void
clientTick
(Level p_155404_, BlockPos p_155405_, BlockState p_155406_, ConduitBlockEntity p_155407_) private static LivingEntity
findDestroyTarget
(Level p_155425_, BlockPos p_155426_, UUID p_155427_) float
getActiveRotation
(float p_59198_) private static AABB
getDestroyRangeAABB
(BlockPos p_155432_) getUpdateTag
(HolderLookup.Provider p_327672_) boolean
isActive()
boolean
protected void
loadAdditional
(CompoundTag p_330083_, HolderLookup.Provider p_329204_) protected void
saveAdditional
(CompoundTag p_187495_, HolderLookup.Provider p_330437_) static void
serverTick
(Level p_155439_, BlockPos p_155440_, BlockState p_155441_, ConduitBlockEntity p_155442_) private void
setHunting
(boolean p_59215_) private static void
updateClientTarget
(Level p_155400_, BlockPos p_155401_, ConduitBlockEntity p_155402_) private static void
updateDestroyTarget
(Level p_155409_, BlockPos p_155410_, BlockState p_155411_, List<BlockPos> p_155412_, ConduitBlockEntity p_155413_) private static void
updateHunting
(ConduitBlockEntity p_155429_, List<BlockPos> p_155430_) private static boolean
updateShape
(Level p_155415_, BlockPos p_155416_, List<BlockPos> p_155417_) Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, loadCustomOnly, loadStatic, loadWithComponents, onChunkUnloaded, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setLevel, setRemoved, triggerEvent
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate
-
Field Details
-
BLOCK_REFRESH_RATE
private static final int BLOCK_REFRESH_RATE- See Also:
-
EFFECT_DURATION
private static final int EFFECT_DURATION- See Also:
-
ROTATION_SPEED
private static final float ROTATION_SPEED- See Also:
-
MIN_ACTIVE_SIZE
private static final int MIN_ACTIVE_SIZE- See Also:
-
MIN_KILL_SIZE
private static final int MIN_KILL_SIZE- See Also:
-
KILL_RANGE
private static final int KILL_RANGE- See Also:
-
VALID_BLOCKS
-
tickCount
public int tickCount -
activeRotation
private float activeRotation -
isActive
private boolean isActive -
isHunting
private boolean isHunting -
effectBlocks
-
destroyTarget
-
destroyTargetUUID
-
nextAmbientSoundActivation
private long nextAmbientSoundActivation
-
-
Constructor Details
-
ConduitBlockEntity
-
-
Method Details
-
loadAdditional
- Overrides:
loadAdditional
in classBlockEntity
-
saveAdditional
- Overrides:
saveAdditional
in classBlockEntity
-
getUpdatePacket
- Overrides:
getUpdatePacket
in classBlockEntity
-
getUpdateTag
- Overrides:
getUpdateTag
in classBlockEntity
-
clientTick
public static void clientTick(Level p_155404_, BlockPos p_155405_, BlockState p_155406_, ConduitBlockEntity p_155407_) -
serverTick
public static void serverTick(Level p_155439_, BlockPos p_155440_, BlockState p_155441_, ConduitBlockEntity p_155442_) -
updateHunting
-
updateShape
-
applyEffects
-
updateDestroyTarget
private static void updateDestroyTarget(Level p_155409_, BlockPos p_155410_, BlockState p_155411_, List<BlockPos> p_155412_, ConduitBlockEntity p_155413_) -
updateClientTarget
private static void updateClientTarget(Level p_155400_, BlockPos p_155401_, ConduitBlockEntity p_155402_) -
getDestroyRangeAABB
-
findDestroyTarget
@Nullable private static LivingEntity findDestroyTarget(Level p_155425_, BlockPos p_155426_, UUID p_155427_) -
animationTick
-
isActive
public boolean isActive() -
isHunting
public boolean isHunting() -
setHunting
private void setHunting(boolean p_59215_) -
getActiveRotation
public float getActiveRotation(float p_59198_)
-