Record Class CustomBlockStateBuilderMapping
java.lang.Object
java.lang.Record
org.geysermc.geyser.registry.mappings.util.CustomBlockStateBuilderMapping
- Record Components:
builder- The builder of the blockextendedCollisionBox- The extended collision box of the block
public record CustomBlockStateBuilderMapping(@NonNull Function<org.geysermc.geyser.api.block.custom.CustomBlockState.Builder,org.geysermc.geyser.api.block.custom.CustomBlockState> builder, org.geysermc.geyser.api.block.custom.component.BoxComponent extendedCollisionBox)
extends Record
This class is used to store a custom block state builder mapping, which contains custom
block state builders and a potenially null extended collision box
-
Constructor Summary
ConstructorsConstructorDescriptionCustomBlockStateBuilderMapping(@NonNull Function<org.geysermc.geyser.api.block.custom.CustomBlockState.Builder, org.geysermc.geyser.api.block.custom.CustomBlockState> builder, org.geysermc.geyser.api.block.custom.component.BoxComponent extendedCollisionBox) Creates an instance of aCustomBlockStateBuilderMappingrecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull Function<org.geysermc.geyser.api.block.custom.CustomBlockState.Builder,org.geysermc.geyser.api.block.custom.CustomBlockState> builder()Returns the value of thebuilderrecord 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
-
CustomBlockStateBuilderMapping
public CustomBlockStateBuilderMapping(@NonNull Function<org.geysermc.geyser.api.block.custom.CustomBlockState.Builder, org.geysermc.geyser.api.block.custom.CustomBlockState> builder, org.geysermc.geyser.api.block.custom.component.BoxComponent extendedCollisionBox) Creates an instance of aCustomBlockStateBuilderMappingrecord class.- Parameters:
builder- the value for thebuilderrecord 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). -
builder
public @NonNull Function<org.geysermc.geyser.api.block.custom.CustomBlockState.Builder,org.geysermc.geyser.api.block.custom.CustomBlockState> builder()Returns the value of thebuilderrecord component.- Returns:
- the value of the
builderrecord 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
-