mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-25 06:24:43 +00:00
Update forge mappings to 20201028-1.16.3 (#7435)
This commit is contained in:
1 parent
6e0e67b14d
commit
53eedb0f10
93 files changed
+598
-588
No files matched your search
@@ -110,7 +110,7 @@ public interface IForgeBlock
|
||||
*/
|
||||
default boolean isLadder(BlockState state, IWorldReader world, BlockPos pos, LivingEntity entity)
|
||||
{
|
||||
return state.getBlock().isIn(BlockTags.field_232878_as_);
|
||||
return state.getBlock().isIn(BlockTags.CLIMBABLE);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -303,7 +303,7 @@ public interface IForgeBlock
|
||||
*/
|
||||
default boolean canBeReplacedByLeaves(BlockState state, IWorldReader world, BlockPos pos)
|
||||
{
|
||||
return isAir(state, world, pos) || state.func_235714_a_(BlockTags.LEAVES);
|
||||
return isAir(state, world, pos) || state.isIn(BlockTags.LEAVES);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -316,7 +316,7 @@ public interface IForgeBlock
|
||||
*/
|
||||
default boolean canBeReplacedByLogs(BlockState state, IWorldReader world, BlockPos pos)
|
||||
{
|
||||
return (isAir(state, world, pos) || state.func_235714_a_(BlockTags.LEAVES)) || this == Blocks.GRASS_BLOCK || state.func_235714_a_(Tags.Blocks.DIRT)
|
||||
return (isAir(state, world, pos) || state.isIn(BlockTags.LEAVES)) || this == Blocks.GRASS_BLOCK || state.isIn(Tags.Blocks.DIRT)
|
||||
|| getBlock().isIn(BlockTags.LOGS) || getBlock().isIn(BlockTags.SAPLINGS) || this == Blocks.VINE;
|
||||
}
|
||||
|
||||
@@ -465,7 +465,7 @@ public interface IForgeBlock
|
||||
*/
|
||||
default void onPlantGrow(BlockState state, IWorld world, BlockPos pos, BlockPos source)
|
||||
{
|
||||
if (state.func_235714_a_(Tags.Blocks.DIRT))
|
||||
if (state.isIn(Tags.Blocks.DIRT))
|
||||
world.setBlockState(pos, Blocks.DIRT.getDefaultState(), 2);
|
||||
}
|
||||
|
||||
@@ -750,7 +750,7 @@ public interface IForgeBlock
|
||||
*/
|
||||
default int getFlammability(BlockState state, IBlockReader world, BlockPos pos, Direction face)
|
||||
{
|
||||
return ((FireBlock)Blocks.FIRE).func_220274_q(state);
|
||||
return ((FireBlock)Blocks.FIRE).getFlammability(state);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -791,7 +791,7 @@ public interface IForgeBlock
|
||||
*/
|
||||
default int getFireSpreadSpeed(BlockState state, IBlockReader world, BlockPos pos, Direction face)
|
||||
{
|
||||
return ((FireBlock)Blocks.FIRE).func_220275_r(state);
|
||||
return ((FireBlock)Blocks.FIRE).getFireSpreadSpeed(state);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -807,7 +807,7 @@ public interface IForgeBlock
|
||||
*/
|
||||
default boolean isFireSource(BlockState state, IWorldReader world, BlockPos pos, Direction side)
|
||||
{
|
||||
return state.func_235714_a_(world.func_230315_m_().func_241515_q_());
|
||||
return state.isIn(world.getDimensionType().isInfiniBurn());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -822,7 +822,7 @@ public interface IForgeBlock
|
||||
{
|
||||
if (entity instanceof EnderDragonEntity)
|
||||
{
|
||||
return !BlockTags.DRAGON_IMMUNE.func_230235_a_(this.getBlock());
|
||||
return !BlockTags.DRAGON_IMMUNE.contains(this.getBlock());
|
||||
}
|
||||
else if ((entity instanceof WitherEntity) ||
|
||||
(entity instanceof WitherSkullEntity))
|
||||
|
||||
@@ -808,6 +808,6 @@ public interface IForgeBlockState
|
||||
*/
|
||||
default boolean isScaffolding(LivingEntity entity)
|
||||
{
|
||||
return getBlockState().getBlock().isScaffolding(getBlockState(), entity.world, entity.func_233580_cy_(), entity);
|
||||
return getBlockState().getBlock().isScaffolding(getBlockState(), entity.world, entity.getPosition(), entity);
|
||||
}
|
||||
}
|
||||
@@ -56,7 +56,7 @@ public interface IForgeEntityMinecart
|
||||
int y = MathHelper.floor(getMinecart().getPosY());
|
||||
int z = MathHelper.floor(getMinecart().getPosZ());
|
||||
BlockPos pos = new BlockPos(x, y, z);
|
||||
if (getMinecart().world.getBlockState(pos.down()).func_235714_a_(BlockTags.RAILS)) pos = pos.down();
|
||||
if (getMinecart().world.getBlockState(pos.down()).isIn(BlockTags.RAILS)) pos = pos.down();
|
||||
return pos;
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ public interface IForgeStructure
|
||||
default boolean getDefaultRestrictsSpawnsToInside()
|
||||
{
|
||||
//The Pillager Outpost and Ocean Monument check the full structure by default instead of limiting themselves to being within the structure's bounds
|
||||
return getStructure() != Structure.field_236366_b_ && getStructure() != Structure.field_236376_l_;
|
||||
return getStructure() != Structure.PILLAGER_OUTPOST && getStructure() != Structure.MONUMENT;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -36,7 +36,7 @@ public interface IForgeTagBuilder<T>
|
||||
default TagsProvider.Builder<T> addTags(ITag.INamedTag<T>... values) {
|
||||
TagsProvider.Builder<T> builder = getBuilder();
|
||||
for (ITag.INamedTag<T> value : values) {
|
||||
builder.func_240531_a_(value);
|
||||
builder.addTag(value);
|
||||
}
|
||||
return builder;
|
||||
}
|
||||
@@ -44,7 +44,7 @@ public interface IForgeTagBuilder<T>
|
||||
default TagsProvider.Builder<T> add(RegistryKey<T>... keys) {
|
||||
TagsProvider.Builder<T> builder = getBuilder();
|
||||
for (RegistryKey<T> key : keys) {
|
||||
builder.getInternalBuilder().func_232961_a_(key.func_240901_a_(), getBuilder().getModID());
|
||||
builder.getInternalBuilder().addItemEntry(key.getLocation(), getBuilder().getModID());
|
||||
}
|
||||
return builder;
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ public interface IForgeTileEntity extends ICapabilitySerializable<CompoundNBT>
|
||||
// @Override TODO re-evaluate
|
||||
default void deserializeNBT(BlockState state, CompoundNBT nbt)
|
||||
{
|
||||
getTileEntity().func_230337_a_(state, nbt);
|
||||
getTileEntity().read(state, nbt);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -82,7 +82,7 @@ public interface IForgeTileEntity extends ICapabilitySerializable<CompoundNBT>
|
||||
*/
|
||||
default void handleUpdateTag(BlockState state, CompoundNBT tag)
|
||||
{
|
||||
getTileEntity().func_230337_a_(state, tag);
|
||||
getTileEntity().read(state, tag);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user