mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-29 00:09:01 +00:00
Doc for UNSTAMPED and pass Nonnull to Overrides
This commit is contained in:
2 files changed
+4
No files matched your search
@@ -23,6 +23,7 @@ import javax.annotation.Nonnull;
|
||||
/// A transformer that rewrites item stacks extends [VersionedStackTransformer], which covers every pass.
|
||||
public interface IVersionedTransformer {
|
||||
|
||||
/// Default value when a transformer has not yet stamped a given data store.
|
||||
int UNSTAMPED = -1;
|
||||
|
||||
/// The stamp key, unique across all registered transformers, e.g. `"examplemod:idList"`. Must return the same
|
||||
|
||||
@@ -12,6 +12,8 @@ import net.minecraft.nbt.NBTTagList;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
class VersionedStackTransformerTest {
|
||||
|
||||
/// Bumps every stack's damage by one, or rewrites nothing when `rewrite` is false.
|
||||
@@ -24,6 +26,7 @@ class VersionedStackTransformerTest {
|
||||
this.rewrite = rewrite;
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public String key() {
|
||||
return "test:damage";
|
||||
|
||||
Reference in new issue
Block a user