Package net.nullved.pmweatherapi.radar
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
ConstructorsConstructorDescriptionRadarModeProperty(String name) Creates a new radar mode property with the given name -
Method Summary
Methods inherited from class net.minecraft.world.level.block.state.properties.Property
codec, equals, generateHashCode, getAllValues, getName, getValueClass, hashCode, parseValue, toString, value, value, valueCodec
-
Constructor Details
-
RadarModeProperty
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
Gets the possible radar mode values- Specified by:
getPossibleValuesin classnet.minecraft.world.level.block.state.properties.Property<RadarMode>- Returns:
RadarMode.values()- Since:
- 0.14.16.2
-
getName
Gets the serialized name of the givenRadarMode -
getValue
Gets a radar mode from the property string- Specified by:
getValuein classnet.minecraft.world.level.block.state.properties.Property<RadarMode>- Parameters:
s- The radar mode string- Returns:
- A
RadarMode(RadarMode.NULLif not a valid ID) - Since:
- 0.14.16.2
-