Class HangingTendrilBlockEntity
java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
net.frozenblock.wilderwild.block.entity.HangingTendrilBlockEntity
- All Implemented Interfaces:
net.minecraft.world.level.gameevent.GameEventListener.Holder<net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Listener>,net.minecraft.world.level.gameevent.vibrations.VibrationSystem
public class HangingTendrilBlockEntity
extends net.minecraft.world.level.block.entity.BlockEntity
implements net.minecraft.world.level.gameevent.GameEventListener.Holder<net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Listener>, net.minecraft.world.level.gameevent.vibrations.VibrationSystem
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem
net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Data, net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Listener, net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Ticker, net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final doublebooleanintnet.minecraft.resources.ResourceLocationintintbooleanstatic final intstatic final intFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem
RESONANCE_EVENTS, VIBRATION_FREQUENCY_FOR_EVENT -
Constructor Summary
ConstructorsConstructorDescriptionHangingTendrilBlockEntity(@NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionvoidclientTick(@NotNull net.minecraft.world.level.block.state.BlockState state) net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Userintint@NotNull net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Listenerintnet.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket@NotNull net.minecraft.nbt.CompoundTag@NotNull net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Data@NotNull net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Uservoidload(@NotNull net.minecraft.nbt.CompoundTag tag) protected voidsaveAdditional(@NotNull net.minecraft.nbt.CompoundTag tag) voidserverTick(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state) voidsetActiveTicks(int i) voidsetLastVibrationFrequency(int lastVibrationFrequency) voidsetStoredXP(int i) Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEvent
-
Field Details
-
MILK_FRAMES
public static final int MILK_FRAMES- See Also:
-
MILK_ANIM_SPEED
public static final int MILK_ANIM_SPEED- See Also:
-
ACTIVE_FRAMES
public static final int ACTIVE_FRAMES- See Also:
-
ACTIVE_ANIM_SPEED
public static final int ACTIVE_ANIM_SPEED- See Also:
-
TWITCHING_FRAMES
public static final int TWITCHING_FRAMES- See Also:
-
TWITCHING_ANIM_SPEED
public static final int TWITCHING_ANIM_SPEED- See Also:
-
INACTIVE_FRAMES
public static final int INACTIVE_FRAMES- See Also:
-
INACTIVE_ANIM_SPEED
public static final int INACTIVE_ANIM_SPEED- See Also:
-
MILK_XP_PERCENTAGE
public static final double MILK_XP_PERCENTAGE- See Also:
-
ticksToStopTwitching
public int ticksToStopTwitching -
ringOutTicksLeft
public int ringOutTicksLeft -
texture
public net.minecraft.resources.ResourceLocation texture -
twitching
public boolean twitching -
active
public boolean active -
milking
public boolean milking -
ticks
public int ticks
-
-
Constructor Details
-
HangingTendrilBlockEntity
public HangingTendrilBlockEntity(@NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
serverTick
public void serverTick(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state) -
clientTick
public void clientTick(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state) -
getStoredXP
public int getStoredXP() -
setStoredXP
public void setStoredXP(int i) -
getActiveTicks
public int getActiveTicks() -
setActiveTicks
public void setActiveTicks(int i) -
getUpdatePacket
public net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket getUpdatePacket()- Overrides:
getUpdatePacketin classnet.minecraft.world.level.block.entity.BlockEntity
-
getUpdateTag
@NotNull public @NotNull net.minecraft.nbt.CompoundTag getUpdateTag()- Overrides:
getUpdateTagin classnet.minecraft.world.level.block.entity.BlockEntity
-
load
public void load(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) - Overrides:
loadin classnet.minecraft.world.level.block.entity.BlockEntity
-
saveAdditional
protected void saveAdditional(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) - Overrides:
saveAdditionalin classnet.minecraft.world.level.block.entity.BlockEntity
-
createVibrationUser
@NotNull public net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User createVibrationUser() -
getLastVibrationFrequency
public int getLastVibrationFrequency() -
setLastVibrationFrequency
public void setLastVibrationFrequency(int lastVibrationFrequency) -
getListener
@NotNull public @NotNull net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Listener getListener()- Specified by:
getListenerin interfacenet.minecraft.world.level.gameevent.GameEventListener.Holder<net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Listener>
-
getVibrationData
@NotNull public @NotNull net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Data getVibrationData()- Specified by:
getVibrationDatain interfacenet.minecraft.world.level.gameevent.vibrations.VibrationSystem
-
getVibrationUser
@NotNull public @NotNull net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User getVibrationUser()- Specified by:
getVibrationUserin interfacenet.minecraft.world.level.gameevent.vibrations.VibrationSystem
-