Record Class SideChainPartBlock.EmptyNeighbor
java.lang.Object
java.lang.Record
net.minecraft.world.level.block.SideChainPartBlock.EmptyNeighbor
- All Implemented Interfaces:
SideChainPartBlock.Neighbor
- Enclosing interface:
SideChainPartBlock
public static record SideChainPartBlock.EmptyNeighbor(BlockPos pos)
extends Record
implements SideChainPartBlock.Neighbor
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEmptyNeighbor(BlockPos pos) Creates an instance of aEmptyNeighborrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanconnectsTowards(SideChainPart endPart) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanbooleanpos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface SideChainPartBlock.Neighbor
connectToTheLeft, connectToTheRight, disconnectFromLeft, disconnectFromRight
-
Field Details
-
pos
The field for theposrecord component.
-
-
Constructor Details
-
EmptyNeighbor
Creates an instance of aEmptyNeighborrecord class.- Parameters:
pos- the value for theposrecord component
-
-
Method Details
-
isConnectable
public boolean isConnectable()- Specified by:
isConnectablein interfaceSideChainPartBlock.Neighbor
-
isUnconnectableOrChainEnd
public boolean isUnconnectableOrChainEnd()- Specified by:
isUnconnectableOrChainEndin interfaceSideChainPartBlock.Neighbor
-
connectsTowards
- Specified by:
connectsTowardsin interfaceSideChainPartBlock.Neighbor
-
toString
-
hashCode
-
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). -
pos
Returns the value of theposrecord component.- Specified by:
posin interfaceSideChainPartBlock.Neighbor- Returns:
- the value of the
posrecord component
-