forked from darkevilmac/pomf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mapped some persistence data stuff (FabricMC#326)
I renamed all persisted to persistent, though vanilla fix types enum calls them saved data. Mapped out the persistent data manager that is bound to each dimension and the persistent data updater for stuctures.
- Loading branch information
1 parent
f07fc18
commit 69f8a71
Showing
18 changed files
with
121 additions
and
18 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CLASS cip | ||
METHOD a getNextAvailableId (Lbsg;Ljava/lang/String;)I | ||
ARG 2 key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
CLASS bry net/minecraft/world/ChunkSaveHandlerImpl | ||
FIELD e featureUpdater Lcbz; | ||
METHOD a shortListsToNbt ([Lit/unimi/dsi/fastutil/shorts/ShortList;)Lhy; | ||
ARG 0 lists | ||
METHOD b save ()V |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
CLASS ccl net/minecraft/world/ChunkUpdateState | ||
FIELD a all Lit/unimi/dsi/fastutil/longs/LongSet; | ||
FIELD b remaining Lit/unimi/dsi/fastutil/longs/LongSet; | ||
METHOD <init> (Ljava/lang/String;)V | ||
ARG 1 key | ||
METHOD a getAll ()Lit/unimi/dsi/fastutil/longs/LongSet; | ||
METHOD a add (J)V | ||
METHOD a fromTag (Lhs;)V | ||
METHOD b contains (J)Z | ||
METHOD b toTag (Lhs;)Lhs; | ||
METHOD c isRemaing (J)Z | ||
METHOD d markResolved (J)V |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
CLASS cbz net/minecraft/world/FeatureUpdater | ||
CLASS cbz$a TheNether | ||
FIELD a NAMES [Ljava/lang/String; | ||
METHOD a getNewNames ()[Ljava/lang/String; | ||
METHOD b getOldNames ()[Ljava/lang/String; | ||
CLASS cbz$b Overworld | ||
FIELD a NEW_NAMES [Ljava/lang/String; | ||
FIELD b OLD_NAMES [Ljava/lang/String; | ||
METHOD a getNewNames ()[Ljava/lang/String; | ||
METHOD b getOldNames ()[Ljava/lang/String; | ||
CLASS cbz$c TheEnd | ||
FIELD a NAMES [Ljava/lang/String; | ||
METHOD a getNewNames ()[Ljava/lang/String; | ||
METHOD b getOldNames ()[Ljava/lang/String; | ||
FIELD a LOGGER Lorg/apache/logging/log4j/Logger; | ||
FIELD b OLD_TO_NEW Ljava/util/Map; | ||
FIELD c ANCIENT_TO_OLD Ljava/util/Map; | ||
FIELD d needsUpdate Z | ||
FIELD e featureIdToChunkTag Ljava/util/Map; | ||
FIELD f updateStates Ljava/util/Map; | ||
METHOD <init> (Lciq;)V | ||
ARG 2 oldName | ||
METHOD a getNewNames ()[Ljava/lang/String; | ||
METHOD a needsUpdate (II)Z | ||
ARG 1 chunkX | ||
ARG 2 chunkZ | ||
METHOD a needsUpdate (IILjava/lang/String;)Z | ||
ARG 1 chunkX | ||
ARG 2 chunkZ | ||
ARG 3 id | ||
METHOD a markResolved (J)V | ||
ARG 1 chunk | ||
METHOD a create (Lbsg;Lciq;)Lcbz; | ||
METHOD a init (Lciq;)V | ||
ARG 6 updatedFeatures | ||
ARG 10 chunk | ||
ARG 12 children | ||
METHOD a getUpdatedReferences (Lhs;)Lhs; | ||
METHOD a getUpdatedStarts (Lhs;Lbbd;)Lhs; | ||
METHOD b getOldNames ()[Ljava/lang/String; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CLASS bbk net/minecraft/world/ForcedChunkState | ||
FIELD a chunks Lit/unimi/dsi/fastutil/longs/LongSet; | ||
METHOD <init> (Ljava/lang/String;)V | ||
ARG 1 key | ||
METHOD a getChunks ()Lit/unimi/dsi/fastutil/longs/LongSet; | ||
METHOD a fromTag (Lhs;)V | ||
METHOD b toTag (Lhs;)Lhs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CLASS chu net/minecraft/world/PersistentState | ||
FIELD a key Ljava/lang/String; | ||
FIELD b dirty Z | ||
METHOD <init> (Ljava/lang/String;)V | ||
ARG 1 key | ||
METHOD a fromTag (Lhs;)V | ||
METHOD a setDirty (Z)V | ||
METHOD b toTag (Lhs;)Lhs; | ||
METHOD d markDirty ()V | ||
METHOD e isDirty ()Z | ||
METHOD f getId ()Ljava/lang/String; |
8 changes: 8 additions & 0 deletions
8
mappings/net/minecraft/world/PersistentStateContainer.mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CLASS bbx net/minecraft/world/PersistentStateContainer | ||
METHOD a getNextAvailableId (Lbsg;Ljava/lang/String;)I | ||
ARG 2 persistentStateKey | ||
METHOD a setPersistentState (Lbsg;Ljava/lang/String;Lchu;)V | ||
ARG 2 key | ||
METHOD a createPersistentState (Lbsg;Ljava/util/function/Function;Ljava/lang/String;)Lchu; | ||
ARG 3 key | ||
METHOD h getPersistentStateManager ()Lciq; |
13 changes: 13 additions & 0 deletions
13
mappings/net/minecraft/world/PersistentStateManager.mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
CLASS ciq net/minecraft/world/PersistentStateManager | ||
FIELD a dimensionToManager Ljava/util/Map; | ||
FIELD b saveHandler Lcii; | ||
METHOD a save ()V | ||
METHOD a getNextAvailableId (Lbsg;Ljava/lang/String;)I | ||
ARG 2 key | ||
METHOD a set (Lbsg;Ljava/lang/String;Lchu;)V | ||
ARG 2 key | ||
METHOD a create (Lbsg;Ljava/util/function/Function;Ljava/lang/String;)Lchu; | ||
ARG 3 key | ||
METHOD a update (Ljava/lang/String;I)Lhs; | ||
ARG 1 key | ||
ARG 2 worldVersion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
mappings/net/minecraft/world/dimension/DimensionalPersistentStateManager.mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
CLASS cie net/minecraft/world/dimension/DimensionalPersistentStateManager | ||
FIELD a LOGGER Lorg/apache/logging/log4j/Logger; | ||
FIELD b type Lbsg; | ||
FIELD c keyToState Ljava/util/Map; | ||
FIELD d keyToAvailableId Lit/unimi/dsi/fastutil/objects/Object2IntMap; | ||
FIELD e saveHandler Lcii; | ||
METHOD a readIdCounts ()V | ||
METHOD a save (Lchu;)V | ||
METHOD a update (Lcii;Lbsg;Ljava/lang/String;I)Lhs; | ||
ARG 2 key | ||
ARG 3 worldVersion | ||
METHOD a getNextAvailableId (Ljava/lang/String;)I | ||
ARG 1 key | ||
METHOD a set (Ljava/lang/String;Lchu;)V | ||
ARG 1 key | ||
METHOD a create (Ljava/util/function/Function;Ljava/lang/String;)Lchu; | ||
ARG 2 key | ||
METHOD b save ()V |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters