Record Class RocketStationMenu.DimensionEntry
java.lang.Object
java.lang.Record
com.lightning.northstar.block.tech.rocket_station.RocketStationMenu.DimensionEntry
- Enclosing class:
RocketStationMenu
public static record RocketStationMenu.DimensionEntry(@Nullable Planet planet, @Nullable PlanetDimension dimension, List<it.unimi.dsi.fastutil.Pair<RocketDestination,net.minecraft.network.chat.Component>> destinations, net.minecraft.network.chat.Component text)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDimensionEntry(@Nullable Planet planet, @Nullable PlanetDimension dimension, List<it.unimi.dsi.fastutil.Pair<RocketDestination, net.minecraft.network.chat.Component>> destinations, net.minecraft.network.chat.Component text) Creates an instance of aDimensionEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<it.unimi.dsi.fastutil.Pair<RocketDestination, net.minecraft.network.chat.Component>> Returns the value of thedestinationsrecord component.@Nullable PlanetDimensionReturns the value of thedimensionrecord component.@Nullable net.minecraft.resources.ResourceLocationfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Planetplanet()Returns the value of theplanetrecord component.net.minecraft.network.chat.Componenttext()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DimensionEntry
public DimensionEntry(@Nullable @Nullable Planet planet, @Nullable @Nullable PlanetDimension dimension, List<it.unimi.dsi.fastutil.Pair<RocketDestination, net.minecraft.network.chat.Component>> destinations, net.minecraft.network.chat.Component text) Creates an instance of aDimensionEntryrecord class.- Parameters:
planet- the value for theplanetrecord componentdimension- the value for thedimensionrecord componentdestinations- the value for thedestinationsrecord componenttext- the value for thetextrecord component
-
-
Method Details
-
dimensionId
@Nullable public @Nullable net.minecraft.resources.ResourceLocation dimensionId() -
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). -
planet
Returns the value of theplanetrecord component.- Returns:
- the value of the
planetrecord component
-
dimension
Returns the value of thedimensionrecord component.- Returns:
- the value of the
dimensionrecord component
-
destinations
public List<it.unimi.dsi.fastutil.Pair<RocketDestination,net.minecraft.network.chat.Component>> destinations()Returns the value of thedestinationsrecord component.- Returns:
- the value of the
destinationsrecord component
-
text
public net.minecraft.network.chat.Component text()Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-