Package net.minecraft
Record Class class_7159.class_7160
java.lang.Object
java.lang.Record
net.minecraft.class_7159.class_7160
- Record Components:
state-pos-block-neighborPos-movedByPiston-
- All Implemented Interfaces:
class_7159.class_7162
- Enclosing class:
class_7159
static record class_7159.class_7160(BlockState state, BlockPos pos, Block block, BlockPos neighborPos, boolean movedByPiston)
extends Record
implements class_7159.class_7162
- Mappings:
Namespace Name official dlq$aintermediary net/minecraft/class_7159$class_7160named net/minecraft/class_7159$class_7160official aintermediary comp_584named stateofficial bintermediary comp_585named posofficial cintermediary comp_586named blockofficial dintermediary comp_587named neighborPosofficial eintermediary comp_588named movedByPiston
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockThe field for theblockrecord component.private final booleanThe field for themovedByPistonrecord component.private final BlockPosThe field for theneighborPosrecord component.private final BlockPosThe field for theposrecord component.private final BlockStateThe field for thestaterecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_7160(BlockState blockState, BlockPos blockPos, Block block, BlockPos blockPos2, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionblock()Returns the value of theblockrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanmethod_41707(ServerWorld serverWorld) booleanReturns the value of themovedByPistonrecord component.Returns the value of theneighborPosrecord component.pos()Returns the value of theposrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
state
The field for thestaterecord component. -
pos
The field for theposrecord component. -
block
The field for theblockrecord component. -
neighborPos
The field for theneighborPosrecord component. -
movedByPiston
private final boolean movedByPistonThe field for themovedByPistonrecord component.
-
-
Constructor Details
-
class_7160
class_7160(BlockState blockState, BlockPos blockPos, Block block, BlockPos blockPos2, boolean bool)
-
-
Method Details
-
method_41707
- Specified by:
method_41707in interfaceclass_7159.class_7162- Mappings:
Namespace Name Mixin selector official aLdlq$c;a(Laee;)Zintermediary method_41707Lnet/minecraft/class_7159$class_7162;method_41707(Lnet/minecraft/class_3218;)Znamed method_41707Lnet/minecraft/class_7159$class_7162;method_41707(Lnet/minecraft/server/world/ServerWorld;)Z
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
block
Returns the value of theblockrecord component.- Returns:
- the value of the
blockrecord component
-
neighborPos
Returns the value of theneighborPosrecord component.- Returns:
- the value of the
neighborPosrecord component
-
movedByPiston
public boolean movedByPiston()Returns the value of themovedByPistonrecord component.- Returns:
- the value of the
movedByPistonrecord component
-