Record Class CornerShaftSet
java.lang.Object
java.lang.Record
petrolpark.mc.petrolsparts.content.kinetics.cornerShaft.CornerShaftSet
public record CornerShaftSet(com.tterrag.registrate.util.entry.BlockEntry<? extends com.simibubi.create.content.kinetics.simpleRelays.ShaftBlock> shaftBlock, com.tterrag.registrate.util.entry.BlockEntry<? extends CornerShaftBlock> cornerShaftBlock, com.tterrag.registrate.util.entry.BlockEntry<? extends com.simibubi.create.content.kinetics.simpleRelays.ShaftBlock> straightCornerShaftBlock, com.tterrag.registrate.util.entry.BlockEntityEntry<? extends CornerShaftBlockEntity> cornerBlockEntity, com.tterrag.registrate.util.entry.BlockEntityEntry<? extends com.simibubi.create.content.kinetics.base.KineticBlockEntity> straightBlockEntity, com.tterrag.registrate.util.entry.BlockEntityEntry<? extends CornerShaftBlockEntity> encasedCornerShaftBlockEntity, net.createmod.catnip.net.base.BasePacketPayload.PacketTypeProvider packetType, PlaceCornerShaftsPacket.Factory packetFactory)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCornerShaftSet(com.tterrag.registrate.util.entry.BlockEntry<? extends com.simibubi.create.content.kinetics.simpleRelays.ShaftBlock> shaftBlock, com.tterrag.registrate.util.entry.BlockEntry<? extends CornerShaftBlock> cornerShaftBlock, com.tterrag.registrate.util.entry.BlockEntry<? extends com.simibubi.create.content.kinetics.simpleRelays.ShaftBlock> straightCornerShaftBlock, com.tterrag.registrate.util.entry.BlockEntityEntry<? extends CornerShaftBlockEntity> cornerBlockEntity, com.tterrag.registrate.util.entry.BlockEntityEntry<? extends com.simibubi.create.content.kinetics.base.KineticBlockEntity> straightBlockEntity, com.tterrag.registrate.util.entry.BlockEntityEntry<? extends CornerShaftBlockEntity> encasedCornerShaftBlockEntity, net.createmod.catnip.net.base.BasePacketPayload.PacketTypeProvider packetType, PlaceCornerShaftsPacket.Factory packetFactory) Creates an instance of aCornerShaftSetrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.tterrag.registrate.util.entry.BlockEntityEntry<? extends CornerShaftBlockEntity> Returns the value of thecornerBlockEntityrecord component.com.tterrag.registrate.util.entry.BlockEntry<? extends CornerShaftBlock> Returns the value of thecornerShaftBlockrecord component.com.tterrag.registrate.util.entry.BlockEntityEntry<? extends CornerShaftBlockEntity> Returns the value of theencasedCornerShaftBlockEntityrecord 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 thepacketFactoryrecord component.net.createmod.catnip.net.base.BasePacketPayload.PacketTypeProviderReturns the value of thepacketTyperecord component.com.tterrag.registrate.util.entry.BlockEntry<? extends com.simibubi.create.content.kinetics.simpleRelays.ShaftBlock> Returns the value of theshaftBlockrecord component.com.tterrag.registrate.util.entry.BlockEntityEntry<? extends com.simibubi.create.content.kinetics.base.KineticBlockEntity> Returns the value of thestraightBlockEntityrecord component.com.tterrag.registrate.util.entry.BlockEntry<? extends com.simibubi.create.content.kinetics.simpleRelays.ShaftBlock> Returns the value of thestraightCornerShaftBlockrecord component.final StringtoString()Returns a string representation of this record class.static CornerShaftSetvanilla()
-
Field Details
-
VANILLA
-
-
Constructor Details
-
CornerShaftSet
public CornerShaftSet(com.tterrag.registrate.util.entry.BlockEntry<? extends com.simibubi.create.content.kinetics.simpleRelays.ShaftBlock> shaftBlock, com.tterrag.registrate.util.entry.BlockEntry<? extends CornerShaftBlock> cornerShaftBlock, com.tterrag.registrate.util.entry.BlockEntry<? extends com.simibubi.create.content.kinetics.simpleRelays.ShaftBlock> straightCornerShaftBlock, com.tterrag.registrate.util.entry.BlockEntityEntry<? extends CornerShaftBlockEntity> cornerBlockEntity, com.tterrag.registrate.util.entry.BlockEntityEntry<? extends com.simibubi.create.content.kinetics.base.KineticBlockEntity> straightBlockEntity, com.tterrag.registrate.util.entry.BlockEntityEntry<? extends CornerShaftBlockEntity> encasedCornerShaftBlockEntity, net.createmod.catnip.net.base.BasePacketPayload.PacketTypeProvider packetType, PlaceCornerShaftsPacket.Factory packetFactory) Creates an instance of aCornerShaftSetrecord class.- Parameters:
shaftBlock- the value for theshaftBlockrecord componentcornerShaftBlock- the value for thecornerShaftBlockrecord componentstraightCornerShaftBlock- the value for thestraightCornerShaftBlockrecord componentcornerBlockEntity- the value for thecornerBlockEntityrecord componentstraightBlockEntity- the value for thestraightBlockEntityrecord componentencasedCornerShaftBlockEntity- the value for theencasedCornerShaftBlockEntityrecord componentpacketType- the value for thepacketTyperecord componentpacketFactory- the value for thepacketFactoryrecord component
-
-
Method Details
-
vanilla
-
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). -
shaftBlock
public com.tterrag.registrate.util.entry.BlockEntry<? extends com.simibubi.create.content.kinetics.simpleRelays.ShaftBlock> shaftBlock()Returns the value of theshaftBlockrecord component.- Returns:
- the value of the
shaftBlockrecord component
-
cornerShaftBlock
Returns the value of thecornerShaftBlockrecord component.- Returns:
- the value of the
cornerShaftBlockrecord component
-
straightCornerShaftBlock
public com.tterrag.registrate.util.entry.BlockEntry<? extends com.simibubi.create.content.kinetics.simpleRelays.ShaftBlock> straightCornerShaftBlock()Returns the value of thestraightCornerShaftBlockrecord component.- Returns:
- the value of the
straightCornerShaftBlockrecord component
-
cornerBlockEntity
public com.tterrag.registrate.util.entry.BlockEntityEntry<? extends CornerShaftBlockEntity> cornerBlockEntity()Returns the value of thecornerBlockEntityrecord component.- Returns:
- the value of the
cornerBlockEntityrecord component
-
straightBlockEntity
public com.tterrag.registrate.util.entry.BlockEntityEntry<? extends com.simibubi.create.content.kinetics.base.KineticBlockEntity> straightBlockEntity()Returns the value of thestraightBlockEntityrecord component.- Returns:
- the value of the
straightBlockEntityrecord component
-
encasedCornerShaftBlockEntity
public com.tterrag.registrate.util.entry.BlockEntityEntry<? extends CornerShaftBlockEntity> encasedCornerShaftBlockEntity()Returns the value of theencasedCornerShaftBlockEntityrecord component.- Returns:
- the value of the
encasedCornerShaftBlockEntityrecord component
-
packetType
public net.createmod.catnip.net.base.BasePacketPayload.PacketTypeProvider packetType()Returns the value of thepacketTyperecord component.- Returns:
- the value of the
packetTyperecord component
-
packetFactory
Returns the value of thepacketFactoryrecord component.- Returns:
- the value of the
packetFactoryrecord component
-