mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-03 06:16:10 +00:00
mark Properties as deprecated
This commit is contained in:
@@ -41,6 +41,4 @@ public interface BlockState extends Cloneable, Handle {
|
||||
String getAsString();
|
||||
|
||||
boolean isAir();
|
||||
|
||||
boolean isStructureVoid();
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ import com.dfsek.terra.api.block.state.properties.enums.RailShape;
|
||||
import com.dfsek.terra.api.block.state.properties.enums.RedstoneConnection;
|
||||
import com.dfsek.terra.api.block.state.properties.enums.WallHeight;
|
||||
|
||||
|
||||
@Deprecated
|
||||
public final class Properties {
|
||||
public static final EnumProperty<Direction> DIRECTION = EnumProperty.of("facing", Direction.class);
|
||||
public static final EnumProperty<Axis> AXIS = EnumProperty.of("axis", Axis.class);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user