Package net.minecraft.world.level.block
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 p_433702_) 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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.block.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
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). -
pos
Returns the value of theposrecord component.- Specified by:
posin interfaceSideChainPartBlock.Neighbor- Returns:
- the value of the
posrecord component
-