mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-25 09:34:47 +00:00
Add back several more methods for Plethora
While Plethora has been updated to no longer require these, it's probably worth keeping them around a little longer, as people may not upgrade them in sync.
This commit is contained in:
@@ -63,4 +63,10 @@ public class DirectionUtil
|
||||
return 0.0f;
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static float toYawAngle( EnumFacing dir )
|
||||
{
|
||||
return dir.getHorizontalAngle();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,6 +15,12 @@ import net.minecraft.world.World;
|
||||
|
||||
public class RedstoneUtil
|
||||
{
|
||||
@Deprecated
|
||||
public static int getRedstoneOutput( World world, BlockPos pos, EnumFacing side )
|
||||
{
|
||||
return world.getRedstonePower( pos, side );
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static int getBundledRedstoneOutput( World world, BlockPos pos, EnumFacing side )
|
||||
{
|
||||
|
||||
@@ -25,8 +25,15 @@ import java.util.List;
|
||||
|
||||
public class WorldUtil
|
||||
{
|
||||
@SuppressWarnings( "Guava" )
|
||||
private static final Predicate<Entity> CAN_COLLIDE = x -> x != null && !x.isDead && x.canBeCollidedWith();
|
||||
|
||||
@Deprecated
|
||||
public static boolean isBlockInWorld( World world, BlockPos pos )
|
||||
{
|
||||
return world.isValid( pos );
|
||||
}
|
||||
|
||||
public static boolean isLiquidBlock( World world, BlockPos pos )
|
||||
{
|
||||
return world.getBlockState( pos ).getMaterial().isLiquid();
|
||||
|
||||
Reference in New Issue
Block a user