Extract serialize method to INBTWritable
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
package exopandora.worldhandler.builder;
|
||||||
|
|
||||||
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
|
import net.minecraft.nbt.INBT;
|
||||||
|
import net.minecraftforge.api.distmarker.Dist;
|
||||||
|
import net.minecraftforge.api.distmarker.OnlyIn;
|
||||||
|
|
||||||
|
@OnlyIn(Dist.CLIENT)
|
||||||
|
public interface INBTWritable
|
||||||
|
{
|
||||||
|
@Nullable
|
||||||
|
INBT serialize();
|
||||||
|
}
|
||||||
@@ -1,15 +1,11 @@
|
|||||||
package exopandora.worldhandler.builder.component;
|
package exopandora.worldhandler.builder.component;
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
import exopandora.worldhandler.builder.INBTWritable;
|
||||||
|
|
||||||
import net.minecraft.nbt.INBT;
|
|
||||||
import net.minecraftforge.api.distmarker.Dist;
|
import net.minecraftforge.api.distmarker.Dist;
|
||||||
import net.minecraftforge.api.distmarker.OnlyIn;
|
import net.minecraftforge.api.distmarker.OnlyIn;
|
||||||
|
|
||||||
@OnlyIn(Dist.CLIENT)
|
@OnlyIn(Dist.CLIENT)
|
||||||
public interface IBuilderComponent
|
public interface IBuilderComponent extends INBTWritable
|
||||||
{
|
{
|
||||||
@Nullable
|
|
||||||
INBT serialize();
|
|
||||||
String getTag();
|
String getTag();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user