Record Class CustomBlockComponentsMapping
java.lang.Object
java.lang.Record
org.geysermc.geyser.registry.mappings.util.CustomBlockComponentsMapping
- Record Components:
components- The components of the blockextendedCollisionBox- The extended collision box of the block
public record CustomBlockComponentsMapping(@NonNull org.geysermc.geyser.api.block.custom.component.CustomBlockComponents components, org.geysermc.geyser.api.block.custom.component.BoxComponent extendedCollisionBox)
extends Record
This class is used to store a custom block components mapping, which contains custom
block components and a potenially null extended collision box
-
Constructor Summary
ConstructorsConstructorDescriptionCustomBlockComponentsMapping(@NonNull org.geysermc.geyser.api.block.custom.component.CustomBlockComponents components, org.geysermc.geyser.api.block.custom.component.BoxComponent extendedCollisionBox) Creates an instance of aCustomBlockComponentsMappingrecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull org.geysermc.geyser.api.block.custom.component.CustomBlockComponentsReturns the value of thecomponentsrecord component.final booleanIndicates whether some other object is "equal to" this one.org.geysermc.geyser.api.block.custom.component.BoxComponentReturns the value of theextendedCollisionBoxrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CustomBlockComponentsMapping
public CustomBlockComponentsMapping(@NonNull org.geysermc.geyser.api.block.custom.component.CustomBlockComponents components, org.geysermc.geyser.api.block.custom.component.BoxComponent extendedCollisionBox) Creates an instance of aCustomBlockComponentsMappingrecord class.- Parameters:
components- the value for thecomponentsrecord componentextendedCollisionBox- the value for theextendedCollisionBoxrecord 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 withObjects::equals(Object,Object). -
components
public @NonNull org.geysermc.geyser.api.block.custom.component.CustomBlockComponents components()Returns the value of thecomponentsrecord component.- Returns:
- the value of the
componentsrecord component
-
extendedCollisionBox
public org.geysermc.geyser.api.block.custom.component.BoxComponent extendedCollisionBox()Returns the value of theextendedCollisionBoxrecord component.- Returns:
- the value of the
extendedCollisionBoxrecord component
-