mark Properties as deprecated

This commit is contained in:
dfsek
2021-12-21 11:43:08 -07:00
parent b5047fc5ab
commit 1a1016bdf8
5 changed files with 3 additions and 23 deletions

View File

@@ -17,8 +17,6 @@
package com.dfsek.terra.bukkit.world.block.data;
import org.bukkit.Material;
import com.dfsek.terra.api.block.BlockType;
import com.dfsek.terra.api.block.state.BlockState;
import com.dfsek.terra.api.block.state.properties.Property;
@@ -76,12 +74,7 @@ public class BukkitBlockState implements BlockState {
public boolean isAir() {
return delegate.getMaterial().isAir();
}
@Override
public boolean isStructureVoid() {
return delegate.getMaterial() == Material.STRUCTURE_VOID;
}
@Override
public BukkitBlockState clone() {
try {

View File

@@ -17,7 +17,6 @@
package com.dfsek.terra.fabric.block;
import net.minecraft.block.Blocks;
import net.minecraft.block.enums.BlockHalf;
import net.minecraft.block.enums.RailShape;
import net.minecraft.block.enums.WallShape;
@@ -141,12 +140,7 @@ public class FabricBlockState implements BlockState {
public boolean isAir() {
return delegate.isAir();
}
@Override
public boolean isStructureVoid() {
return delegate.getBlock() == Blocks.STRUCTURE_VOID;
}
@Override
public BlockState clone() {
try {

View File

@@ -71,11 +71,6 @@ public class SpongeBlockState implements BlockState {
return delegate.type().equals(BlockTypes.AIR.get());
}
@Override
public boolean isStructureVoid() {
return delegate.type().equals(BlockTypes.STRUCTURE_VOID.get());
}
@Override
public BlockState clone() {
return this;