Class VibrationSystem.Data

java.lang.Object
net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Data
Enclosing interface:
VibrationSystem

public static final class VibrationSystem.Data extends Object
  • Field Details

    • CODEC

      public static com.mojang.serialization.Codec<VibrationSystem.Data> CODEC
    • NBT_TAG_KEY

      public static final String NBT_TAG_KEY
      See Also:
    • currentVibration

      @Nullable VibrationInfo currentVibration
    • travelTimeInTicks

      private int travelTimeInTicks
    • selectionStrategy

      final VibrationSelector selectionStrategy
    • reloadVibrationParticle

      private boolean reloadVibrationParticle
  • Constructor Details

  • Method Details

    • getSelectionStrategy

      public VibrationSelector getSelectionStrategy()
    • getCurrentVibration

      @Nullable public VibrationInfo getCurrentVibration()
    • setCurrentVibration

      public void setCurrentVibration(@Nullable VibrationInfo p_282049_)
    • getTravelTimeInTicks

      public int getTravelTimeInTicks()
    • setTravelTimeInTicks

      public void setTravelTimeInTicks(int p_282973_)
    • decrementTravelTime

      public void decrementTravelTime()
    • shouldReloadVibrationParticle

      public boolean shouldReloadVibrationParticle()
    • setReloadVibrationParticle

      public void setReloadVibrationParticle(boolean p_281702_)