Record Class ViaFabricPlusMappingDataLoader.Material
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.protocoltranslator.impl.ViaFabricPlusMappingDataLoader.Material
- Enclosing class:
ViaFabricPlusMappingDataLoader
public static record ViaFabricPlusMappingDataLoader.Material(boolean blocksMovement, boolean burnable, boolean liquid, boolean blocksLight, boolean replaceable, boolean solid)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMaterial(boolean blocksMovement, boolean burnable, boolean liquid, boolean blocksLight, boolean replaceable, boolean solid) Creates an instance of aMaterialrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theblocksLightrecord component.booleanReturns the value of theblocksMovementrecord component.booleanburnable()Returns the value of theburnablerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanliquid()Returns the value of theliquidrecord component.booleanReturns the value of thereplaceablerecord component.booleansolid()Returns the value of thesolidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Material
public Material(boolean blocksMovement, boolean burnable, boolean liquid, boolean blocksLight, boolean replaceable, boolean solid) Creates an instance of aMaterialrecord class.- Parameters:
blocksMovement- the value for theblocksMovementrecord componentburnable- the value for theburnablerecord componentliquid- the value for theliquidrecord componentblocksLight- the value for theblocksLightrecord componentreplaceable- the value for thereplaceablerecord componentsolid- the value for thesolidrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 with '=='. -
blocksMovement
public boolean blocksMovement()Returns the value of theblocksMovementrecord component.- Returns:
- the value of the
blocksMovementrecord component
-
burnable
public boolean burnable()Returns the value of theburnablerecord component.- Returns:
- the value of the
burnablerecord component
-
liquid
public boolean liquid()Returns the value of theliquidrecord component.- Returns:
- the value of the
liquidrecord component
-
blocksLight
public boolean blocksLight()Returns the value of theblocksLightrecord component.- Returns:
- the value of the
blocksLightrecord component
-
replaceable
public boolean replaceable()Returns the value of thereplaceablerecord component.- Returns:
- the value of the
replaceablerecord component
-
solid
public boolean solid()Returns the value of thesolidrecord component.- Returns:
- the value of the
solidrecord component
-