Record Class LevelResource
java.lang.Object
java.lang.Record
net.minecraft.world.level.storage.LevelResource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LevelResourcestatic final LevelResourcestatic final LevelResourcestatic final LevelResourceprivate final StringThe field for theidrecord component.static final LevelResourcestatic final LevelResourcestatic final LevelResourcestatic final LevelResourcestatic final LevelResourcestatic final LevelResourcestatic final LevelResourcestatic final LevelResourcestatic final LevelResource -
Constructor Summary
ConstructorsConstructorDescriptionLevelResource(String id) Creates an instance of aLevelResourcerecord class. -
Method Summary
-
Field Details
-
id
The field for theidrecord component. -
PLAYER_ADVANCEMENTS_DIR
-
PLAYER_STATS_DIR
-
PLAYER_DATA_DIR
-
PLAYER_OLD_DATA_DIR
-
LEVEL_DATA_FILE
-
OLD_LEVEL_DATA_FILE
-
ICON_FILE
-
LOCK_FILE
-
GENERATED_DIR
-
DATAPACK_DIR
-
MAP_RESOURCE_FILE
-
DATA
-
ROOT
-
-
Constructor Details
-
LevelResource
Creates an instance of aLevelResourcerecord class.- Parameters:
id- the value for theidrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-