Package net.minecraft.world.block
Record Class ChainRestrictedNeighborUpdater.StateReplacementEntry
java.lang.Object
java.lang.Record
net.minecraft.world.block.ChainRestrictedNeighborUpdater.StateReplacementEntry
- Record Components:
direction
-neighborState
-pos
-neighborPos
-updateFlags
-
- All Implemented Interfaces:
ChainRestrictedNeighborUpdater.Entry
- Enclosing class:
ChainRestrictedNeighborUpdater
private static record ChainRestrictedNeighborUpdater.StateReplacementEntry(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int updateFlags)
extends Record
implements ChainRestrictedNeighborUpdater.Entry
- Mappings:
Namespace Name official dqw$d
intermediary net/minecraft/class_7159$class_7272
named net/minecraft/world/block/ChainRestrictedNeighborUpdater$StateReplacementEntry
official a
intermediary comp_666
named direction
official b
intermediary comp_667
named neighborState
official c
intermediary comp_668
named pos
official d
intermediary comp_669
named neighborPos
official e
intermediary comp_670
named updateFlags
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Direction
The field for thedirection
record component.private final BlockPos
The field for theneighborPos
record component.private final BlockState
The field for theneighborState
record component.private final BlockPos
The field for thepos
record component.private final int
The field for theupdateFlags
record component. -
Constructor Summary
ConstructorDescriptionStateReplacementEntry
(Direction direction, BlockState blockState, BlockPos blockPos, BlockPos blockPos2, int int2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirection
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theneighborPos
record component.Returns the value of theneighborState
record component.pos()
Returns the value of thepos
record component.final String
toString()
Returns a string representation of this record class.boolean
int
Returns the value of theupdateFlags
record component.
-
Field Details
-
direction
The field for thedirection
record component. -
neighborState
The field for theneighborState
record component. -
pos
The field for thepos
record component. -
neighborPos
The field for theneighborPos
record component. -
updateFlags
private final int updateFlagsThe field for theupdateFlags
record component.
-
-
Constructor Details
-
StateReplacementEntry
StateReplacementEntry(Direction direction, BlockState blockState, BlockPos blockPos, BlockPos blockPos2, int int2)
-
-
Method Details
-
update
- Specified by:
update
in interfaceChainRestrictedNeighborUpdater.Entry
- Mappings:
Namespace Name Mixin selector official a
Ldqw$c;a(Lcgx;)Z
intermediary method_41707
Lnet/minecraft/class_7159$class_7162;method_41707(Lnet/minecraft/class_1937;)Z
named update
Lnet/minecraft/world/block/ChainRestrictedNeighborUpdater$Entry;update(Lnet/minecraft/world/World;)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 '=='. -
direction
Returns the value of thedirection
record component.- Returns:
- the value of the
direction
record component
-
neighborState
Returns the value of theneighborState
record component.- Returns:
- the value of the
neighborState
record component
-
pos
Returns the value of thepos
record component.- Returns:
- the value of the
pos
record component
-
neighborPos
Returns the value of theneighborPos
record component.- Returns:
- the value of the
neighborPos
record component
-
updateFlags
public int updateFlags()Returns the value of theupdateFlags
record component.- Returns:
- the value of the
updateFlags
record component
-