Interface PotentSulfur
- All Superinterfaces:
BlockEntity, CopyableDataHolder, DataHolder, DataHolder.Mutable, DataSerializable, Locatable, SerializableDataHolder, SerializableDataHolder.Mutable, ValueContainer
Represents a geyser-like, periodically erupting block that applies a
nausea effect to nearby living entities while a suitable noxious source
exists above it, and may launch entities upward during an eruption.
The countdown exposed by eruptionCountdown() advances each
server tick the block entity finds a valid source; when it elapses the
block toggles between its dormant and erupting block-state forms (see
BlockStateKeys.POTENT_SULFUR_STATE).
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface DataHolder
DataHolder.Immutable<I>, DataHolder.MutableNested classes/interfaces inherited from interface SerializableDataHolder
SerializableDataHolder.Immutable<I>, SerializableDataHolder.Mutable -
Method Summary
Modifier and TypeMethodDescriptiondefault Value.Mutable<Ticks> default voidClears the eruption countdown, forcing the block entity to re-evaluate its surroundings on the next server tick.Methods inherited from interface BlockEntity
block, canTick, copy, createArchetype, isRemoved, isTicking, locatableBlock, mirror, mirror, remove, rotate, rotate, setTicking, typeMethods inherited from interface DataHolder.Mutable
copyFrom, copyFrom, offer, offer, offer, offer, offerAll, offerAll, offerAll, offerAll, offerAll, offerAll, offerSingle, offerSingle, offerSingle, offerSingle, remove, remove, remove, removeAll, removeAll, removeAll, removeAll, removeAll, removeAll, removeKey, removeKey, removeSingle, removeSingle, transform, transform, tryOffer, tryOffer, tryOffer, undoMethods inherited from interface DataSerializable
contentVersion, toContainer, toViewMethods inherited from interface Locatable
blockPosition, location, serverLocation, worldMethods inherited from interface SerializableDataHolder
validateRawDataMethods inherited from interface SerializableDataHolder.Mutable
setRawDataMethods inherited from interface ValueContainer
get, getDouble, getInt, getKeys, getLong, getOrElse, getOrNull, getValue, getValues, require, requireValue, streamKeys, streamValues, supports, supports
-
Method Details
-
eruptionCountdown
Keys.ERUPTION_COUNTDOWNThe remaining ticks until the next state flip. When the block entity has not yet evaluated its surroundings (or no suitable noxious source is present), this value is absent.
- Returns:
- The mutable eruption countdown.
-
resetCountdown
default void resetCountdown()Clears the eruption countdown, forcing the block entity to re-evaluate its surroundings on the next server tick.
-