Class VibrationSystem.Data
java.lang.Object
net.minecraft.world.level.gameevent.vibrations.VibrationSystem.Data
- Enclosing interface:
VibrationSystem
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.mojang.serialization.Codec<VibrationSystem.Data>
(package private) VibrationInfo
static final String
private boolean
(package private) final VibrationSelector
private int
-
Constructor Summary
ModifierConstructorDescriptionData()
private
Data
(VibrationInfo p_281967_, VibrationSelector p_283036_, int p_283607_, boolean p_282438_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
void
setCurrentVibration
(VibrationInfo p_282049_) void
setReloadVibrationParticle
(boolean p_281702_) void
setTravelTimeInTicks
(int p_282973_) boolean
-
Field Details
-
CODEC
-
NBT_TAG_KEY
- See Also:
-
currentVibration
-
travelTimeInTicks
private int travelTimeInTicks -
selectionStrategy
-
reloadVibrationParticle
private boolean reloadVibrationParticle
-
-
Constructor Details
-
Data
private Data(@Nullable VibrationInfo p_281967_, VibrationSelector p_283036_, int p_283607_, boolean p_282438_) -
Data
public Data()
-
-
Method Details
-
getSelectionStrategy
-
getCurrentVibration
-
setCurrentVibration
-
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_)
-