public interface BeaconData extends DataManipulator<BeaconData,ImmutableBeaconData>
DataManipulator
handling the data for a Beacon
,
usually applicable to the PotionEffectType
s being applied to
Entity
instances in the region around the Beacon
.Modifier and Type | Method and Description |
---|---|
BeaconData |
clearEffects()
Fills the primary and secondary
PotionEffectType s
with Optional.empty() values as a semi "reset" state. |
OptionalValue<PotionEffectType> |
primaryEffect()
Gets the
OptionalValue for the primary
PotionEffectType . |
OptionalValue<PotionEffectType> |
secondaryEffect()
Gets the
OptionalValue for the secondary
PotionEffectType . |
asImmutable, copy, fill, fill, from, set, set, set, set, transform
getContentVersion, toContainer
OptionalValue<PotionEffectType> primaryEffect()
OptionalValue
for the primary
PotionEffectType
.Keys.BEACON_PRIMARY_EFFECT
OptionalValue<PotionEffectType> secondaryEffect()
OptionalValue
for the secondary
PotionEffectType
.Keys.BEACON_SECONDARY_EFFECT
BeaconData clearEffects()
PotionEffectType
s
with Optional.empty()
values as a semi "reset" state.