mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-13 02:40:28 +00:00
Update to MC 1.16.4
Just some mapping changes really
This commit is contained in:
parent
5bf367af9f
commit
ab232bd689
@ -2,6 +2,6 @@
|
||||
mod_version=1.93.1
|
||||
|
||||
# Minecraft properties (update mods.toml when changing)
|
||||
mc_version=1.16.3
|
||||
forge_version=34.0.1
|
||||
mappings_version=20200723-1.16.1
|
||||
mc_version=1.16.4
|
||||
forge_version=35.0.1
|
||||
mappings_version=20201028-1.16.3
|
||||
|
@ -23,7 +23,7 @@ public class ClientTableFormatter implements TableFormatter
|
||||
{
|
||||
public static final ClientTableFormatter INSTANCE = new ClientTableFormatter();
|
||||
|
||||
private static Int2IntOpenHashMap lastHeights = new Int2IntOpenHashMap();
|
||||
private static final Int2IntOpenHashMap lastHeights = new Int2IntOpenHashMap();
|
||||
|
||||
private static FontRenderer renderer()
|
||||
{
|
||||
@ -55,7 +55,7 @@ public class ClientTableFormatter implements TableFormatter
|
||||
@Override
|
||||
public int getWidth( ITextComponent component )
|
||||
{
|
||||
return renderer().func_238414_a_( component );
|
||||
return renderer().getStringPropertyWidth( component );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -141,7 +141,7 @@ public final class GuiComputer<T extends ContainerComputerBase> extends Containe
|
||||
public void render( @Nonnull MatrixStack stack, int mouseX, int mouseY, float partialTicks )
|
||||
{
|
||||
super.render( stack, mouseX, mouseY, partialTicks );
|
||||
func_230459_a_( stack, mouseX, mouseY );
|
||||
renderHoveredTooltip( stack, mouseX, mouseY );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -37,6 +37,6 @@ public class GuiDiskDrive extends ContainerScreen<ContainerDiskDrive>
|
||||
{
|
||||
renderBackground( transform );
|
||||
super.render( transform, mouseX, mouseY, partialTicks );
|
||||
func_230459_a_( transform, mouseX, mouseY );
|
||||
renderHoveredTooltip( transform, mouseX, mouseY );
|
||||
}
|
||||
}
|
||||
|
@ -47,6 +47,6 @@ public class GuiPrinter extends ContainerScreen<ContainerPrinter>
|
||||
{
|
||||
renderBackground( stack );
|
||||
super.render( stack, mouseX, mouseY, partialTicks );
|
||||
func_230459_a_( stack, mouseX, mouseY );
|
||||
renderHoveredTooltip( stack, mouseX, mouseY );
|
||||
}
|
||||
}
|
||||
|
@ -126,7 +126,7 @@ public class GuiTurtle extends ContainerScreen<ContainerTurtle>
|
||||
{
|
||||
renderBackground( stack );
|
||||
super.render( stack, mouseX, mouseY, partialTicks );
|
||||
func_230459_a_( stack, mouseX, mouseY );
|
||||
renderHoveredTooltip( stack, mouseX, mouseY );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -75,7 +75,7 @@ public final class ComputerCraftProxyClient
|
||||
ResourceLocation id = new ResourceLocation( ComputerCraft.MOD_ID, name );
|
||||
for( Supplier<? extends Item> item : items )
|
||||
{
|
||||
ItemModelsProperties.func_239418_a_( item.get(), id, getter );
|
||||
ItemModelsProperties.registerProperty( item.get(), id, getter );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -108,9 +108,9 @@ public class TurtleMultiModel implements IBakedModel
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_230044_c_()
|
||||
public boolean isSideLit()
|
||||
{
|
||||
return m_baseModel.func_230044_c_();
|
||||
return m_baseModel.isSideLit();
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
|
@ -109,7 +109,7 @@ public class TurtleSmartItemModel implements IBakedModel
|
||||
{
|
||||
@Nonnull
|
||||
@Override
|
||||
public IBakedModel func_239290_a_( @Nonnull IBakedModel originalModel, @Nonnull ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity )
|
||||
public IBakedModel getOverrideModel( @Nonnull IBakedModel originalModel, @Nonnull ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity )
|
||||
{
|
||||
ItemTurtle turtle = (ItemTurtle) stack.getItem();
|
||||
int colour = turtle.getColour( stack );
|
||||
@ -184,9 +184,9 @@ public class TurtleSmartItemModel implements IBakedModel
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean func_230044_c_()
|
||||
public boolean isSideLit()
|
||||
{
|
||||
return familyModel.func_230044_c_();
|
||||
return familyModel.isSideLit();
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
|
@ -51,7 +51,7 @@ public abstract class LootTableProvider implements IDataProvider
|
||||
tables.put( id, table );
|
||||
} );
|
||||
|
||||
tables.forEach( ( key, value ) -> LootTableManager.func_227508_a_( validation, key, value ) );
|
||||
tables.forEach( ( key, value ) -> LootTableManager.validateLootTable( validation, key, value ) );
|
||||
|
||||
Multimap<String, String> problems = validation.getProblems();
|
||||
if( !problems.isEmpty() )
|
||||
|
@ -21,7 +21,7 @@ import static dan200.computercraft.data.Tags.CCTags.*;
|
||||
|
||||
public class Tags extends ItemTagsProvider
|
||||
{
|
||||
private static final ITag.INamedTag<Item> PIGLIN_LOVED = ItemTags.field_232903_N_;
|
||||
private static final ITag.INamedTag<Item> PIGLIN_LOVED = ItemTags.PIGLIN_LOVED;
|
||||
|
||||
public static class CCTags
|
||||
{
|
||||
|
@ -29,13 +29,13 @@ public final class ConstantLootConditionSerializer<T extends ILootCondition> imp
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_230424_a_( @Nonnull JsonObject json, @Nonnull T object, @Nonnull JsonSerializationContext context )
|
||||
public void serialize( @Nonnull JsonObject json, @Nonnull T object, @Nonnull JsonSerializationContext context )
|
||||
{
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public T func_230423_a_( @Nonnull JsonObject json, @Nonnull JsonDeserializationContext context )
|
||||
public T deserialize( @Nonnull JsonObject json, @Nonnull JsonDeserializationContext context )
|
||||
{
|
||||
return instance;
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ public final class NetworkHandler
|
||||
|
||||
public static void sendToAllAround( NetworkMessage packet, World world, Vector3d pos, double range )
|
||||
{
|
||||
PacketDistributor.TargetPoint target = new PacketDistributor.TargetPoint( pos.x, pos.y, pos.z, range, world.func_234923_W_() );
|
||||
PacketDistributor.TargetPoint target = new PacketDistributor.TargetPoint( pos.x, pos.y, pos.z, range, world.getDimensionKey() );
|
||||
network.send( PacketDistributor.NEAR.with( () -> target ), packet );
|
||||
}
|
||||
|
||||
|
@ -125,7 +125,7 @@ public final class TileDiskDrive extends TileGeneric implements DefaultInventory
|
||||
public void read( @Nonnull BlockState state, @Nonnull CompoundNBT nbt )
|
||||
{
|
||||
super.read( state, nbt );
|
||||
customName = nbt.contains( NBT_NAME ) ? ITextComponent.Serializer.func_240643_a_( nbt.getString( NBT_NAME ) ) : null;
|
||||
customName = nbt.contains( NBT_NAME ) ? ITextComponent.Serializer.getComponentFromJson( nbt.getString( NBT_NAME ) ) : null;
|
||||
if( nbt.contains( NBT_ITEM ) )
|
||||
{
|
||||
CompoundNBT item = nbt.getCompound( NBT_ITEM );
|
||||
|
@ -113,7 +113,7 @@ public class ItemData
|
||||
{
|
||||
try
|
||||
{
|
||||
return ITextComponent.Serializer.func_240643_a_( x.getString() );
|
||||
return ITextComponent.Serializer.getComponentFromJson( x.getString() );
|
||||
}
|
||||
catch( JsonParseException e )
|
||||
{
|
||||
|
@ -95,7 +95,7 @@ public final class TilePrinter extends TileGeneric implements DefaultSidedInvent
|
||||
{
|
||||
super.read( state, nbt );
|
||||
|
||||
customName = nbt.contains( NBT_NAME ) ? ITextComponent.Serializer.func_240643_a_( nbt.getString( NBT_NAME ) ) : null;
|
||||
customName = nbt.contains( NBT_NAME ) ? ITextComponent.Serializer.getComponentFromJson( nbt.getString( NBT_NAME ) ) : null;
|
||||
|
||||
// Read page
|
||||
synchronized( m_page )
|
||||
|
@ -152,7 +152,7 @@ public abstract class SpeakerPeripheral implements IPeripheral
|
||||
|
||||
float adjVolume = Math.min( volume, 3.0f );
|
||||
server.getPlayerList().sendToAllNearExcept(
|
||||
null, pos.x, pos.y, pos.z, adjVolume > 1.0f ? 16 * adjVolume : 16.0, world.func_234923_W_(),
|
||||
null, pos.x, pos.y, pos.z, adjVolume > 1.0f ? 16 * adjVolume : 16.0, world.getDimensionKey(),
|
||||
new SPlaySoundPacket( name, SoundCategory.RECORDS, pos, adjVolume, pitch )
|
||||
);
|
||||
return null;
|
||||
|
@ -100,7 +100,7 @@ public class TurtleTool extends AbstractTurtleUpgrade
|
||||
protected boolean canBreakBlock( BlockState state, World world, BlockPos pos, TurtlePlayer player )
|
||||
{
|
||||
Block block = state.getBlock();
|
||||
return !state.isAir( world, pos )
|
||||
return !state.isAir()
|
||||
&& block != Blocks.BEDROCK
|
||||
&& state.getPlayerRelativeBlockHardness( player, world, pos ) > 0
|
||||
&& block.canEntityDestroy( state, world, pos, player );
|
||||
|
@ -16,7 +16,6 @@ import net.minecraftforge.common.util.FakePlayer;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
import javax.crypto.SecretKey;
|
||||
|
||||
public class FakeNetHandler extends ServerPlayNetHandler
|
||||
{
|
||||
@ -322,11 +321,6 @@ public class FakeNetHandler extends ServerPlayNetHandler
|
||||
this.closeReason = message;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enableEncryption( @Nonnull SecretKey key )
|
||||
{
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public INetHandler getNetHandler()
|
||||
|
@ -1,5 +1,5 @@
|
||||
modLoader="javafml"
|
||||
loaderVersion="[34,35)"
|
||||
loaderVersion="[35,36)"
|
||||
|
||||
issueTrackerURL="https://github.com/SquidDev-CC/CC-Tweaked/issues"
|
||||
displayURL="https://github.com/SquidDev-CC/CC-Tweaked"
|
||||
@ -20,6 +20,6 @@ CC: Tweaked is a fork of ComputerCraft, adding programmable computers, turtles a
|
||||
[[dependencies.computercraft]]
|
||||
modId="forge"
|
||||
mandatory=true
|
||||
versionRange="[34.0.1,35)"
|
||||
versionRange="[35.0.1,36)"
|
||||
ordering="NONE"
|
||||
side="BOTH"
|
||||
|
Loading…
Reference in New Issue
Block a user