Record Class RocketStationHolder
java.lang.Object
java.lang.Record
com.lightning.northstar.block.tech.rocket_station.RocketStationHolder
public record RocketStationHolder(net.minecraft.world.SimpleContainer container, net.minecraft.core.BlockPos pos, RocketContraption contraption, RocketStationBlockEntity be, RocketContraptionEntity entity)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRocketStationHolder(net.minecraft.world.SimpleContainer container, net.minecraft.core.BlockPos pos, RocketContraption contraption, RocketStationBlockEntity be, RocketContraptionEntity entity) Creates an instance of aRocketStationHolderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbe()Returns the value of theberecord component.net.minecraft.world.SimpleContainerReturns the value of thecontainerrecord component.Returns the value of thecontraptionrecord component.entity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.core.BlockPospos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RocketStationHolder
public RocketStationHolder(net.minecraft.world.SimpleContainer container, net.minecraft.core.BlockPos pos, RocketContraption contraption, RocketStationBlockEntity be, RocketContraptionEntity entity) Creates an instance of aRocketStationHolderrecord class.- Parameters:
container- the value for thecontainerrecord componentpos- the value for theposrecord componentcontraption- the value for thecontraptionrecord componentbe- the value for theberecord componententity- the value for theentityrecord component
-
-
Method Details
-
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). -
container
public net.minecraft.world.SimpleContainer container()Returns the value of thecontainerrecord component.- Returns:
- the value of the
containerrecord component
-
pos
public net.minecraft.core.BlockPos pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
contraption
Returns the value of thecontraptionrecord component.- Returns:
- the value of the
contraptionrecord component
-
be
Returns the value of theberecord component.- Returns:
- the value of the
berecord component
-
entity
Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-