Record Class AdvancedBarrierModelValues
java.lang.Object
java.lang.Record
net.modgarden.barricade.client.util.AdvancedBarrierModelValues
public record AdvancedBarrierModelValues(BlockedDirections directions, @Nullable net.minecraft.resources.Identifier icon)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAdvancedBarrierModelValues(BlockedDirections directions, @Nullable net.minecraft.resources.Identifier icon) Creates an instance of aAdvancedBarrierModelValuesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectionsrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.@Nullable net.minecraft.resources.Identifiericon()Returns the value of theiconrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AdvancedBarrierModelValues
public AdvancedBarrierModelValues(BlockedDirections directions, @Nullable @Nullable net.minecraft.resources.Identifier icon) Creates an instance of aAdvancedBarrierModelValuesrecord class.- Parameters:
directions- the value for thedirectionsrecord componenticon- the value for theiconrecord component
-
-
Method Details
-
getVariant
-
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). -
hashCode
-
toString
-
directions
Returns the value of thedirectionsrecord component.- Returns:
- the value of the
directionsrecord component
-
icon
@Nullable public @Nullable net.minecraft.resources.Identifier icon()Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-