Record Class PropertyRemap<T>
java.lang.Object
java.lang.Record
com.fastasyncworldedit.core.limit.PropertyRemap<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<B extends BlockStateHolder<B>>
Bapply(B state) Apply remapping to a state.Apply remapping to a given value if the given block type has the property associated with this remap instance.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.newValue()Returns the value of thenewValuerecord component.oldValue()Returns the value of theoldValuerecord component.property()Returns the value of thepropertyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PropertyRemap
-
-
Method Details
-
apply
Apply remapping to a state. Will return original state if property is not present.- Parameters:
state- Block to apply remapping to- Returns:
- new state
-
apply
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
property
-
oldValue
Returns the value of theoldValuerecord component.- Returns:
- the value of the
oldValuerecord component
-
newValue
Returns the value of thenewValuerecord component.- Returns:
- the value of the
newValuerecord component
-