Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-09-07 00:22:51 +02:00
Add binary tag methods to IDelegateBukkitImplyAdapter
Dieser Commit ist enthalten in:
Ursprung
ea6b29f145
Commit
46fb0c9418
@ -13,6 +13,7 @@ import com.sk89q.worldedit.math.Vector3;
|
|||||||
import com.sk89q.worldedit.registry.state.Property;
|
import com.sk89q.worldedit.registry.state.Property;
|
||||||
import com.sk89q.worldedit.util.Direction;
|
import com.sk89q.worldedit.util.Direction;
|
||||||
import com.sk89q.worldedit.util.nbt.CompoundBinaryTag;
|
import com.sk89q.worldedit.util.nbt.CompoundBinaryTag;
|
||||||
|
import com.sk89q.worldedit.util.nbt.BinaryTag;
|
||||||
import com.sk89q.worldedit.world.DataFixer;
|
import com.sk89q.worldedit.world.DataFixer;
|
||||||
import com.sk89q.worldedit.world.biome.BiomeType;
|
import com.sk89q.worldedit.world.biome.BiomeType;
|
||||||
import com.sk89q.worldedit.world.block.BaseBlock;
|
import com.sk89q.worldedit.world.block.BaseBlock;
|
||||||
@ -124,15 +125,26 @@ public interface IDelegateBukkitImplAdapter<T> extends BukkitImplAdapter<T> {
|
|||||||
return getParent().getMaterial(blockState);
|
return getParent().getMaterial(blockState);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
default Tag toNative(T foreign) {
|
default Tag toNative(T foreign) {
|
||||||
return getParent().toNative(foreign);
|
return getParent().toNative(foreign);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
default BinaryTag toNativeBinary(T foreign) {
|
||||||
|
return getParent().toNativeBinary(foreign);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
default T fromNative(Tag foreign) {
|
default T fromNative(Tag foreign) {
|
||||||
return getParent().fromNative(foreign);
|
return getParent().fromNative(foreign);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
default T fromNativeBinary(BinaryTag foreign) {
|
||||||
|
return getParent().fromNativeBinary(foreign);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Nullable
|
@Nullable
|
||||||
default World createWorld(WorldCreator creator) {
|
default World createWorld(WorldCreator creator) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren