-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding TagWrapper interface to indicate classes which expose their Co…
…mpoundTag data object. ChunkBase fixed bug in ctor - should call initReferences0
- Loading branch information
BuildTools
committed
Nov 12, 2021
1 parent
3b624a0
commit 52fbb72
Showing
2 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package net.querz.mca; | ||
|
||
import net.querz.nbt.tag.CompoundTag; | ||
|
||
public interface TagWrapper { | ||
/** | ||
* Updates the data tag held by this wrapper and returns it. | ||
* @return A reference to the raw CompoundTag this object is based on. | ||
*/ | ||
CompoundTag updateHandle(); | ||
|
||
/** | ||
* Provides a reference to the wrapped data tag. | ||
* May be null for objects which support partial loading such as chunks. | ||
* @return A reference to the raw CompoundTag this object is based on. | ||
*/ | ||
CompoundTag getHandle(); | ||
} |