Record Class NativeBlockIdentifiers.Update
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.api.model.NativeBlockIdentifiers.Update
- All Implemented Interfaces:
NativeBlockIdentifiers
- Enclosing interface:
NativeBlockIdentifiers
public static record NativeBlockIdentifiers.Update(int dimension, com.viaversion.viaversion.api.minecraft.BlockPosition position, int layer, int state)
extends Record
implements NativeBlockIdentifiers
-
Nested Class Summary
Nested classes/interfaces inherited from interface NativeBlockIdentifiers
NativeBlockIdentifiers.Dictionary, NativeBlockIdentifiers.Forget, NativeBlockIdentifiers.Name, NativeBlockIdentifiers.Reset, NativeBlockIdentifiers.Section, NativeBlockIdentifiers.Update -
Field Summary
Fields inherited from interface NativeBlockIdentifiers
CHANNEL, MAX_DICTIONARY_BYTES, TYPE -
Constructor Summary
ConstructorsConstructorDescriptionUpdate(int dimension, com.viaversion.viaversion.api.minecraft.BlockPosition position, int layer, int state) Creates an instance of aUpdaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedimensionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlayer()Returns the value of thelayerrecord component.com.viaversion.viaversion.api.minecraft.BlockPositionposition()Returns the value of thepositionrecord component.intstate()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Update
public Update(int dimension, com.viaversion.viaversion.api.minecraft.BlockPosition position, int layer, int state) Creates an instance of aUpdaterecord class.- Parameters:
dimension- the value for thedimensionrecord componentposition- the value for thepositionrecord componentlayer- the value for thelayerrecord componentstate- the value for thestaterecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
dimension
public int dimension()Returns the value of thedimensionrecord component.- Specified by:
dimensionin interfaceNativeBlockIdentifiers- Returns:
- the value of the
dimensionrecord component
-
position
public com.viaversion.viaversion.api.minecraft.BlockPosition position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
layer
public int layer()Returns the value of thelayerrecord component.- Returns:
- the value of the
layerrecord component
-
state
public int state()Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-