mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-17 14:21:08 +00:00
mark Properties as deprecated
This commit is contained in:
@@ -41,6 +41,4 @@ public interface BlockState extends Cloneable, Handle {
|
|||||||
String getAsString();
|
String getAsString();
|
||||||
|
|
||||||
boolean isAir();
|
boolean isAir();
|
||||||
|
|
||||||
boolean isStructureVoid();
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -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.RedstoneConnection;
|
||||||
import com.dfsek.terra.api.block.state.properties.enums.WallHeight;
|
import com.dfsek.terra.api.block.state.properties.enums.WallHeight;
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public final class Properties {
|
public final class Properties {
|
||||||
public static final EnumProperty<Direction> DIRECTION = EnumProperty.of("facing", Direction.class);
|
public static final EnumProperty<Direction> DIRECTION = EnumProperty.of("facing", Direction.class);
|
||||||
public static final EnumProperty<Axis> AXIS = EnumProperty.of("axis", Axis.class);
|
public static final EnumProperty<Axis> AXIS = EnumProperty.of("axis", Axis.class);
|
||||||
|
|||||||
-7
@@ -17,8 +17,6 @@
|
|||||||
|
|
||||||
package com.dfsek.terra.bukkit.world.block.data;
|
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.BlockType;
|
||||||
import com.dfsek.terra.api.block.state.BlockState;
|
import com.dfsek.terra.api.block.state.BlockState;
|
||||||
import com.dfsek.terra.api.block.state.properties.Property;
|
import com.dfsek.terra.api.block.state.properties.Property;
|
||||||
@@ -77,11 +75,6 @@ public class BukkitBlockState implements BlockState {
|
|||||||
return delegate.getMaterial().isAir();
|
return delegate.getMaterial().isAir();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isStructureVoid() {
|
|
||||||
return delegate.getMaterial() == Material.STRUCTURE_VOID;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BukkitBlockState clone() {
|
public BukkitBlockState clone() {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
package com.dfsek.terra.fabric.block;
|
package com.dfsek.terra.fabric.block;
|
||||||
|
|
||||||
import net.minecraft.block.Blocks;
|
|
||||||
import net.minecraft.block.enums.BlockHalf;
|
import net.minecraft.block.enums.BlockHalf;
|
||||||
import net.minecraft.block.enums.RailShape;
|
import net.minecraft.block.enums.RailShape;
|
||||||
import net.minecraft.block.enums.WallShape;
|
import net.minecraft.block.enums.WallShape;
|
||||||
@@ -142,11 +141,6 @@ public class FabricBlockState implements BlockState {
|
|||||||
return delegate.isAir();
|
return delegate.isAir();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isStructureVoid() {
|
|
||||||
return delegate.getBlock() == Blocks.STRUCTURE_VOID;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BlockState clone() {
|
public BlockState clone() {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -71,11 +71,6 @@ public class SpongeBlockState implements BlockState {
|
|||||||
return delegate.type().equals(BlockTypes.AIR.get());
|
return delegate.type().equals(BlockTypes.AIR.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isStructureVoid() {
|
|
||||||
return delegate.type().equals(BlockTypes.STRUCTURE_VOID.get());
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BlockState clone() {
|
public BlockState clone() {
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
Reference in New Issue
Block a user