mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-10-26 19:37:39 +00:00
Bump to 1.14pr1
This commit is contained in:
@@ -19,7 +19,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
@Mixin( ItemFrameEntityRenderer.class )
|
||||
public class MixinItemFrameEntityRenderer
|
||||
{
|
||||
@Inject( method = "method_3992", at = @At( "HEAD" ), cancellable = true )
|
||||
@Inject( method = "hasLabel", at = @At( "HEAD" ), cancellable = true ) // TODO: This name is entirely wrong
|
||||
private void method_3992_Injected( ItemFrameEntity entity, CallbackInfo info )
|
||||
{
|
||||
ItemStack stack = entity.getHeldItemStack();
|
||||
|
||||
@@ -43,7 +43,7 @@ public abstract class ItemBlockCable extends BlockItem
|
||||
|
||||
world.setBlockState( pos, state, 3 );
|
||||
BlockSoundGroup soundType = state.getBlock().getSoundGroup( state );
|
||||
world.playSound( null, pos, soundType.getPlaceSound(), SoundCategory.BLOCK, (soundType.getVolume() + 1.0F) / 2.0F, soundType.getPitch() * 0.8F );
|
||||
world.playSound( null, pos, soundType.getPlaceSound(), SoundCategory.BLOCKS, (soundType.getVolume() + 1.0F) / 2.0F, soundType.getPitch() * 0.8F );
|
||||
|
||||
BlockEntity tile = world.getBlockEntity( pos );
|
||||
if( tile instanceof TileCable )
|
||||
|
||||
@@ -146,7 +146,7 @@ public abstract class SpeakerPeripheral implements IPeripheral
|
||||
float adjVolume = Math.min( volume, 3.0f );
|
||||
server.getPlayerManager().sendToAround(
|
||||
null, pos.x, pos.y, pos.z, adjVolume > 1.0f ? 16 * adjVolume : 16.0, world.getDimension().getType(),
|
||||
new PlaySoundIdS2CPacket( name, SoundCategory.RECORD, pos, adjVolume, pitch )
|
||||
new PlaySoundIdS2CPacket( name, SoundCategory.RECORDS, pos, adjVolume, pitch )
|
||||
);
|
||||
return null;
|
||||
} );
|
||||
|
||||
@@ -17,6 +17,7 @@ import net.minecraft.command.arguments.EntityAnchorArgumentType;
|
||||
import net.minecraft.container.Container;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.passive.HorseBaseEntity;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.inventory.Inventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.server.world.ServerWorld;
|
||||
@@ -139,12 +140,11 @@ public final class TurtlePlayer extends FakePlayer
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public Either<SleepResult, Void> trySleep( @Nonnull BlockPos bedLocation )
|
||||
public Either<PlayerEntity.SleepFailureReason, Void> trySleep( @Nonnull BlockPos bedLocation )
|
||||
{
|
||||
return Either.left( SleepResult.INVALID_ATTEMPT );
|
||||
return Either.left( PlayerEntity.SleepFailureReason.INVALID_ATTEMPT );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -29,7 +29,7 @@ import java.util.List;
|
||||
public final class WorldUtil
|
||||
{
|
||||
@SuppressWarnings( "Guava" )
|
||||
private static final Predicate<Entity> CAN_COLLIDE = x -> x != null && x.isAlive() && x.doesCollide();
|
||||
private static final Predicate<Entity> CAN_COLLIDE = x -> x != null && x.isAlive() && x.collides();
|
||||
|
||||
public static boolean isLiquidBlock( World world, BlockPos pos )
|
||||
{
|
||||
@@ -73,7 +73,7 @@ public final class WorldUtil
|
||||
|
||||
Entity closest = null;
|
||||
double closestDist = 99.0;
|
||||
List<Entity> list = world.getEntitiesInBox( Entity.class, bigBox, CAN_COLLIDE );
|
||||
List<Entity> list = world.getEntities( Entity.class, bigBox, CAN_COLLIDE );
|
||||
for( Entity entity : list )
|
||||
{
|
||||
BoundingBox littleBox = entity.getBoundingBox();
|
||||
|
||||
Reference in New Issue
Block a user