Class RadarModeProperty

java.lang.Object
net.minecraft.world.level.block.state.properties.Property<RadarMode>
net.nullved.pmweatherapi.radar.RadarModeProperty

public class RadarModeProperty extends net.minecraft.world.level.block.state.properties.Property<RadarMode>
A Property for a RadarMode
Since:
0.14.16.2
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.level.block.state.properties.Property

    net.minecraft.world.level.block.state.properties.Property.Value<T extends Comparable<T>>
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new radar mode property with the given name
  • Method Summary

    Modifier and Type
    Method
    Description
    getName(RadarMode radarMode)
    Gets the serialized name of the given RadarMode
    Gets the possible radar mode values
    Gets a radar mode from the property string

    Methods inherited from class net.minecraft.world.level.block.state.properties.Property

    codec, equals, generateHashCode, getAllValues, getName, getValueClass, hashCode, parseValue, toString, value, value, valueCodec

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RadarModeProperty

      public RadarModeProperty(String name)
      Creates a new radar mode property with the given name
      Parameters:
      name - The name of the property
      Since:
      0.14.16.2
  • Method Details

    • getPossibleValues

      public Collection<RadarMode> getPossibleValues()
      Gets the possible radar mode values
      Specified by:
      getPossibleValues in class net.minecraft.world.level.block.state.properties.Property<RadarMode>
      Returns:
      RadarMode.values()
      Since:
      0.14.16.2
    • getName

      public String getName(RadarMode radarMode)
      Gets the serialized name of the given RadarMode
      Specified by:
      getName in class net.minecraft.world.level.block.state.properties.Property<RadarMode>
      Parameters:
      radarMode - The RadarMode
      Returns:
      The serialized name
      Since:
      0.14.16.2
    • getValue

      public Optional<RadarMode> getValue(String s)
      Gets a radar mode from the property string
      Specified by:
      getValue in class net.minecraft.world.level.block.state.properties.Property<RadarMode>
      Parameters:
      s - The radar mode string
      Returns:
      A RadarMode (RadarMode.NULL if not a valid ID)
      Since:
      0.14.16.2