Package net.minecraft.block
Record Class SideChaining.Neighbors
java.lang.Object
java.lang.Record
net.minecraft.block.SideChaining.Neighbors
- Record Components:
block-world-facing-center-cache-
- Enclosing interface:
SideChaining
public static record SideChaining.Neighbors(SideChaining block, WorldAccess world, Direction facing, BlockPos center, Map<BlockPos,SideChaining.Neighbor> cache)
extends Record
- Mappings:
Namespace Name named net/minecraft/block/SideChaining$Neighborsintermediary net/minecraft/class_11587$class_11590official ecj$cnamed blockintermediary comp_4438official anamed worldintermediary comp_4439official bnamed facingintermediary comp_4440official cnamed centerintermediary comp_4441official dnamed cacheintermediary comp_4442official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SideChainingThe field for theblockrecord component.private final Map<BlockPos, SideChaining.Neighbor> The field for thecacherecord component.private final BlockPosThe field for thecenterrecord component.private final DirectionThe field for thefacingrecord component.private final WorldAccessThe field for theworldrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNeighbors(SideChaining sideChaining, WorldAccess worldAccess, Direction direction, BlockPos blockPos, Map<BlockPos, SideChaining.Neighbor> map) -
Method Summary
Modifier and TypeMethodDescriptionblock()Returns the value of theblockrecord component.cache()Returns the value of thecacherecord component.private booleancanChainWith(BlockState state) center()Returns the value of thecenterrecord component.private SideChaining.NeighborcreateNeighbor(BlockPos pos) final booleanIndicates whether some other object is "equal to" this one.facing()Returns the value of thefacingrecord component.getLeftNeighbor(int distance) private SideChaining.NeighborgetOrCreateNeighbor(Direction direction, Integer distance) getRightNeighbor(int distance) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.world()Returns the value of theworldrecord component.
-
Field Details
-
Constructor Details
-
Neighbors
public Neighbors(SideChaining sideChaining, WorldAccess worldAccess, Direction direction, BlockPos blockPos, Map<BlockPos, SideChaining.Neighbor> map)
-
-
Method Details
-
canChainWith
- Mappings:
Namespace Name Mixin selector named canChainWithLnet/minecraft/block/SideChaining$Neighbors;canChainWith(Lnet/minecraft/block/BlockState;)Zintermediary method_72638Lnet/minecraft/class_11587$class_11590;method_72638(Lnet/minecraft/class_2680;)Zofficial aLecj$c;a(Lejm;)Z
-
createNeighbor
- Mappings:
Namespace Name Mixin selector named createNeighborLnet/minecraft/block/SideChaining$Neighbors;createNeighbor(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/SideChaining$Neighbor;intermediary method_72639Lnet/minecraft/class_11587$class_11590;method_72639(Lnet/minecraft/class_2338;)Lnet/minecraft/class_11587$class_11589;official aLecj$c;a(Lja;)Lecj$b;
-
getOrCreateNeighbor
- Mappings:
Namespace Name Mixin selector named getOrCreateNeighborLnet/minecraft/block/SideChaining$Neighbors;getOrCreateNeighbor(Lnet/minecraft/util/math/Direction;Ljava/lang/Integer;)Lnet/minecraft/block/SideChaining$Neighbor;intermediary method_72640Lnet/minecraft/class_11587$class_11590;method_72640(Lnet/minecraft/class_2350;Ljava/lang/Integer;)Lnet/minecraft/class_11587$class_11589;official aLecj$c;a(Ljg;Ljava/lang/Integer;)Lecj$b;
-
getLeftNeighbor
- Mappings:
Namespace Name Mixin selector named getLeftNeighborLnet/minecraft/block/SideChaining$Neighbors;getLeftNeighbor(I)Lnet/minecraft/block/SideChaining$Neighbor;intermediary method_72637Lnet/minecraft/class_11587$class_11590;method_72637(I)Lnet/minecraft/class_11587$class_11589;official aLecj$c;a(I)Lecj$b;
-
getRightNeighbor
- Mappings:
Namespace Name Mixin selector named getRightNeighborLnet/minecraft/block/SideChaining$Neighbors;getRightNeighbor(I)Lnet/minecraft/block/SideChaining$Neighbor;intermediary method_72642Lnet/minecraft/class_11587$class_11590;method_72642(I)Lnet/minecraft/class_11587$class_11589;official bLecj$c;b(I)Lecj$b;
-
getLeftNeighbor
- Mappings:
Namespace Name Mixin selector named getLeftNeighborLnet/minecraft/block/SideChaining$Neighbors;getLeftNeighbor()Lnet/minecraft/block/SideChaining$Neighbor;intermediary method_72636Lnet/minecraft/class_11587$class_11590;method_72636()Lnet/minecraft/class_11587$class_11589;official aLecj$c;a()Lecj$b;
-
getRightNeighbor
- Mappings:
Namespace Name Mixin selector named getRightNeighborLnet/minecraft/block/SideChaining$Neighbors;getRightNeighbor()Lnet/minecraft/block/SideChaining$Neighbor;intermediary method_72641Lnet/minecraft/class_11587$class_11590;method_72641()Lnet/minecraft/class_11587$class_11589;official bLecj$c;b()Lecj$b;
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
block
Returns the value of theblockrecord component.- Returns:
- the value of the
blockrecord component
-
world
Returns the value of theworldrecord component.- Returns:
- the value of the
worldrecord component
-
facing
Returns the value of thefacingrecord component.- Returns:
- the value of the
facingrecord component
-
center
Returns the value of thecenterrecord component.- Returns:
- the value of the
centerrecord component
-
cache
Returns the value of thecacherecord component.- Returns:
- the value of the
cacherecord component
-