Contents
Record Class PrefabUtil.PasteRegion.Section
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.util.PrefabUtil.PasteRegion.Section
- Enclosing class:
PrefabUtil.PasteRegion
public static record PrefabUtil.PasteRegion.Section(@Nullable BlockSection blocks, @Nullable FluidSection fluids, @Nullable BlockPhysics physics, @Nullable EntitySection entities, @Nullable BlockComponentSection blockComponents)
extends Record
Holds the component data for a chunk section.
- Since:
- 12.06.2020
-
Constructor Summary
ConstructorsConstructorDescriptionSection(BlockSection blocks, FluidSection fluids, BlockPhysics physics, EntitySection entities, BlockComponentSection blockComponents) Creates an instance of aSectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockComponentsrecord component.blocks()Returns the value of theblocksrecord component.entities()Returns the value of theentitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.fluids()Returns the value of thefluidsrecord component.intgetBlock(int sectionIndex) intgetFiller(int sectionIndex) intgetFluid(int sectionIndex) bytegetFluidLevel(int sectionIndex) intgetRotation(int sectionIndex) getState(int sectionIndex) bytegetSupport(int sectionIndex) final inthashCode()Returns a hash code value for this object.physics()Returns the value of thephysicsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Section
public Section(@Nullable BlockSection blocks, @Nullable FluidSection fluids, @Nullable BlockPhysics physics, @Nullable EntitySection entities, @Nullable BlockComponentSection blockComponents) Creates an instance of aSectionrecord class.- Parameters:
blocks- the value for theblocksrecord componentfluids- the value for thefluidsrecord componentphysics- the value for thephysicsrecord componententities- the value for theentitiesrecord componentblockComponents- the value for theblockComponentsrecord component
-
-
Method Details
-
getBlock
public int getBlock(int sectionIndex) -
getFiller
public int getFiller(int sectionIndex) -
getRotation
public int getRotation(int sectionIndex) -
getSupport
public byte getSupport(int sectionIndex) -
getFluid
public int getFluid(int sectionIndex) -
getFluidLevel
public byte getFluidLevel(int sectionIndex) -
getState
-
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). -
blocks
Returns the value of theblocksrecord component.- Returns:
- the value of the
blocksrecord component
-
fluids
Returns the value of thefluidsrecord component.- Returns:
- the value of the
fluidsrecord component
-
physics
Returns the value of thephysicsrecord component.- Returns:
- the value of the
physicsrecord component
-
entities
Returns the value of theentitiesrecord component.- Returns:
- the value of the
entitiesrecord component
-
blockComponents
Returns the value of theblockComponentsrecord component.- Returns:
- the value of the
blockComponentsrecord component
-