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 dqb$dintermediary net/minecraft/class_7159$class_7272named net/minecraft/world/block/ChainRestrictedNeighborUpdater$StateReplacementEntryofficial aintermediary comp_666named directionofficial bintermediary comp_667named neighborStateofficial cintermediary comp_668named posofficial dintermediary comp_669named neighborPosofficial eintermediary comp_670named updateFlags
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DirectionThe field for thedirectionrecord component.private final BlockPosThe field for theneighborPosrecord component.private final BlockStateThe field for theneighborStaterecord component.private final BlockPosThe field for theposrecord component.private final intThe field for theupdateFlagsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionStateReplacementEntry(Direction direction, BlockState blockState, BlockPos blockPos, BlockPos blockPos2, int int2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theneighborPosrecord component.Returns the value of theneighborStaterecord component.pos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.booleanintReturns the value of theupdateFlagsrecord component.
-
Field Details
-
direction
The field for thedirectionrecord component. -
neighborState
The field for theneighborStaterecord component. -
pos
The field for theposrecord component. -
neighborPos
The field for theneighborPosrecord component. -
updateFlags
private final int updateFlagsThe field for theupdateFlagsrecord component.
-
-
Constructor Details
-
StateReplacementEntry
StateReplacementEntry(Direction direction, BlockState blockState, BlockPos blockPos, BlockPos blockPos2, int int2)
-
-
Method Details
-
update
- Specified by:
updatein interfaceChainRestrictedNeighborUpdater.Entry- Mappings:
Namespace Name Mixin selector official aLdqb$c;a(Lcgc;)Zintermediary method_41707Lnet/minecraft/class_7159$class_7162;method_41707(Lnet/minecraft/class_1937;)Znamed updateLnet/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 thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
neighborState
Returns the value of theneighborStaterecord component.- Returns:
- the value of the
neighborStaterecord component
-
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
neighborPos
Returns the value of theneighborPosrecord component.- Returns:
- the value of the
neighborPosrecord component
-
updateFlags
public int updateFlags()Returns the value of theupdateFlagsrecord component.- Returns:
- the value of the
updateFlagsrecord component
-