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
-updateLimit
-
- All Implemented Interfaces:
ChainRestrictedNeighborUpdater.Entry
- Enclosing class:
ChainRestrictedNeighborUpdater
private static record ChainRestrictedNeighborUpdater.StateReplacementEntry(Direction direction, BlockState neighborState, BlockPos pos, BlockPos neighborPos, int updateFlags, int updateLimit)
extends Record
implements ChainRestrictedNeighborUpdater.Entry
- Mappings:
Namespace Name named net/minecraft/world/block/ChainRestrictedNeighborUpdater$StateReplacementEntry
intermediary net/minecraft/class_7159$class_7272
official epl$d
named direction
intermediary comp_666
official a
named neighborState
intermediary comp_667
official b
named pos
intermediary comp_668
official c
named neighborPos
intermediary comp_669
official d
named updateFlags
intermediary comp_670
official e
named updateLimit
intermediary comp_1344
official f
-
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.private final int
The field for theupdateLimit
record component. -
Constructor Summary
ConstructorDescriptionStateReplacementEntry
(Direction direction, BlockState blockState, BlockPos blockPos, BlockPos blockPos2, int int2, int int3) -
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.int
Returns the value of theupdateLimit
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. -
updateLimit
private final int updateLimitThe field for theupdateLimit
record component.
-
-
Constructor Details
-
StateReplacementEntry
StateReplacementEntry(Direction direction, BlockState blockState, BlockPos blockPos, BlockPos blockPos2, int int2, int int3)
-
-
Method Details
-
update
- Specified by:
update
in interfaceChainRestrictedNeighborUpdater.Entry
- Mappings:
Namespace Name Mixin selector named update
Lnet/minecraft/world/block/ChainRestrictedNeighborUpdater$Entry;update(Lnet/minecraft/world/World;)Z
intermediary method_41707
Lnet/minecraft/class_7159$class_7162;method_41707(Lnet/minecraft/class_1937;)Z
official a
Lepl$c;a(Ldcg;)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
-
updateLimit
public int updateLimit()Returns the value of theupdateLimit
record component.- Returns:
- the value of the
updateLimit
record component
-