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 efe$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 block, WorldAccess level, Direction facing, BlockPos center, Map<BlockPos, SideChaining.Neighbor> cache) -
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 block, WorldAccess level, Direction facing, BlockPos center, Map<BlockPos, SideChaining.Neighbor> cache) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/SideChaining$Neighbors;<init>(Lnet/minecraft/block/SideChaining;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/BlockPos;Ljava/util/Map;)Vintermediary <init>Lnet/minecraft/class_11587$class_11590;<init>(Lnet/minecraft/class_11587;Lnet/minecraft/class_1936;Lnet/minecraft/class_2350;Lnet/minecraft/class_2338;Ljava/util/Map;)Vofficial <init>Lefe$c;<init>(Lefe;Lduo;Ljf;Liz;Ljava/util/Map;)V
-
-
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 aLefe$c;a(Lemh;)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 aLefe$c;a(Liz;)Lefe$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 aLefe$c;a(Ljf;Ljava/lang/Integer;)Lefe$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 aLefe$c;a(I)Lefe$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 bLefe$c;b(I)Lefe$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 aLefe$c;a()Lefe$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 bLefe$c;b()Lefe$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
-