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 Classes
    Modifier and Type
    Class
    Description
    class 
     

    Nested 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

    Fields
    Modifier and Type
    Field
    Description
    boolean
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final double
     
    boolean
     
    int
     
    net.minecraft.resources.ResourceLocation
     
    int
     
    int
     
    boolean
     
    static final int
     
    static final int
     

    Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity

    level, remove, worldPosition

    Fields inherited from interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem

    RESONANCE_EVENTS, VIBRATION_FREQUENCY_FOR_EVENT
  • Constructor Summary

    Constructors
    Constructor
    Description
    HangingTendrilBlockEntity(@NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    clientTick(@NotNull net.minecraft.world.level.block.state.BlockState state)
     
    net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User
     
    int
     
    int
     
    @NotNull net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Listener
     
    int
     
    net.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.User
     
    void
    load(@NotNull net.minecraft.nbt.CompoundTag tag)
     
    protected void
    saveAdditional(@NotNull net.minecraft.nbt.CompoundTag tag)
     
    void
    serverTick(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state)
     
    void
     
    void
    setLastVibrationFrequency(int lastVibrationFrequency)
     
    void
    setStoredXP(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      getUpdatePacket in class net.minecraft.world.level.block.entity.BlockEntity
    • getUpdateTag

      @NotNull public @NotNull net.minecraft.nbt.CompoundTag getUpdateTag()
      Overrides:
      getUpdateTag in class net.minecraft.world.level.block.entity.BlockEntity
    • load

      public void load(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag)
      Overrides:
      load in class net.minecraft.world.level.block.entity.BlockEntity
    • saveAdditional

      protected void saveAdditional(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag)
      Overrides:
      saveAdditional in class net.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:
      getListener in interface net.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:
      getVibrationData in interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem
    • getVibrationUser

      @NotNull public @NotNull net.minecraft.world.level.gameevent.vibrations.VibrationSystem.User getVibrationUser()
      Specified by:
      getVibrationUser in interface net.minecraft.world.level.gameevent.vibrations.VibrationSystem