mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 02:55:17 +00:00
Updated ForgeDev MCP Mapping Version (#6532)
This commit is contained in:
1 parent
aca45340bf
commit
2ce4f5ece5
83 files changed
+392
-379
No files matched your search
@@ -94,7 +94,7 @@ public class CustomTNTTest {
|
||||
if (!world.isRemote) {
|
||||
TNTEntity tnt = new CustomTNTEntity(world, pos.getX() + 0.5F, pos.getY(), pos.getZ() + 0.5F, igniter);
|
||||
world.addEntity(tnt);
|
||||
world.playSound(null, tnt.func_226277_ct_(), tnt.func_226278_cu_(), tnt.func_226281_cx_(), SoundEvents.ENTITY_TNT_PRIMED, SoundCategory.BLOCKS, 1.0F, 1.0F);
|
||||
world.playSound(null, tnt.getPosX(), tnt.getPosY(), tnt.getPosZ(), SoundEvents.ENTITY_TNT_PRIMED, SoundCategory.BLOCKS, 1.0F, 1.0F);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -122,7 +122,7 @@ public class CustomTNTTest {
|
||||
|
||||
@Override
|
||||
protected void explode() {
|
||||
this.world.createExplosion(this, this.func_226277_ct_(), this.func_226278_cu_(), this.func_226281_cx_(), 16.0F, Explosion.Mode.BREAK);
|
||||
this.world.createExplosion(this, this.getPosX(), this.getPosY(), this.getPosZ(), 16.0F, Explosion.Mode.BREAK);
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
|
||||
@@ -364,7 +364,7 @@ public class ModelLoaderRegistryTest
|
||||
private final List<String> hidden = new ArrayList<String>();
|
||||
private final IModelState state = new IModelState()
|
||||
{
|
||||
private final Optional<TRSRTransformation> value = Optional.of(TransformationMatrix.func_227983_a_());
|
||||
private final Optional<TRSRTransformation> value = Optional.of(TransformationMatrix.identity());
|
||||
|
||||
@Override
|
||||
public Optional<TRSRTransformation> apply(Optional<? extends Object> part)
|
||||
@@ -790,7 +790,7 @@ public class ModelLoaderRegistryTest
|
||||
if (world.getTileEntity(pos) != null && world.getTileEntity(pos) instanceof OBJDynamicEyeTileEntity)
|
||||
{
|
||||
OBJDynamicEyeTileEntity te = (OBJDynamicEyeTileEntity) world.getTileEntity(pos);
|
||||
if (te.transform != TransformationMatrix.func_227983_a_())
|
||||
if (te.transform != TransformationMatrix.identity())
|
||||
{
|
||||
return ((IExtendedBlockState) state).withProperty(Properties.AnimationProperty, te.transform);
|
||||
}
|
||||
@@ -807,7 +807,7 @@ public class ModelLoaderRegistryTest
|
||||
super(null); // TODO
|
||||
}
|
||||
|
||||
private TRSRTransformation transform = TransformationMatrix.func_227983_a_();
|
||||
private TRSRTransformation transform = TransformationMatrix.identity();
|
||||
|
||||
@Override
|
||||
public void tick()
|
||||
|
||||
@@ -53,7 +53,7 @@ public class MultiLayerModelTest
|
||||
if (!ENABLED)
|
||||
return;
|
||||
event.getRegistry().register(
|
||||
new Block(Block.Properties.create(Material.WOOD).func_226896_b_())
|
||||
new Block(Block.Properties.create(Material.WOOD).notSolid())
|
||||
{
|
||||
}.setRegistryName(blockId)
|
||||
);
|
||||
@@ -73,7 +73,7 @@ public class MultiLayerModelTest
|
||||
if (!ENABLED)
|
||||
return;
|
||||
RenderTypeLookup.setRenderLayer(TEST_BLOCK, (layer) -> {
|
||||
return layer == RenderType.func_228639_c_() || layer == RenderType.func_228645_f_();
|
||||
return layer == RenderType.getSolid() || layer == RenderType.getTranslucent();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -169,7 +169,7 @@ public class NewModelLoaderTest
|
||||
|
||||
private void putVertex(BakedQuadBuilder builder, int x, float y, float z, float u, float v, float red, float green, float blue)
|
||||
{
|
||||
ImmutableList<VertexFormatElement> elements = DefaultVertexFormats.BLOCK.func_227894_c_();
|
||||
ImmutableList<VertexFormatElement> elements = DefaultVertexFormats.BLOCK.getElements();
|
||||
for(int i=0;i<elements.size();i++)
|
||||
{
|
||||
switch(elements.get(i).getUsage())
|
||||
|
||||
@@ -98,7 +98,7 @@ public class GravityAttributeTest
|
||||
for(LivingEntity liv : list)
|
||||
{
|
||||
IAttributeInstance grav = liv.getAttribute(LivingEntity.ENTITY_GRAVITY);
|
||||
boolean inPlains = liv.world.func_226691_t_(liv.getPosition()).getCategory() == Category.PLAINS;
|
||||
boolean inPlains = liv.world.getBiome(liv.getPosition()).getCategory() == Category.PLAINS;
|
||||
if (inPlains && !grav.hasModifier(REDUCED_GRAVITY))
|
||||
{
|
||||
logger.info("Granted low gravity to Entity: {}", liv);
|
||||
|
||||
Reference in new issue
Block a user