Record Class SceneViewport.PlacedBlock
java.lang.Object
java.lang.Record
net.ixdarklord.coolcatcanvas.api.client.viewport.SceneViewport.PlacedBlock
- Enclosing class:
SceneViewport
public static record SceneViewport.PlacedBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
extends Record
A block of the scene.
-
Constructor Summary
ConstructorsConstructorDescriptionPlacedBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) Creates an instance of aPlacedBlockrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.core.BlockPospos()Returns the value of theposrecord component.net.minecraft.world.level.block.state.BlockStatestate()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlacedBlock
public PlacedBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) Creates an instance of aPlacedBlockrecord class.- Parameters:
pos- the value for theposrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
pos
public net.minecraft.core.BlockPos pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
state
public net.minecraft.world.level.block.state.BlockState state()Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-