Update to 1.15

Due to the massive rendering changes, certain features, such as emissive item rendering and the forge block rendering/lighting pipeline are currently disabled.

Co-authored-by: David Quintana <[email protected]>
Co-authored-by: tterrag <[email protected]>
Co-authored-by: Unnoen <[email protected]>
This commit is contained in:
authored and David Quintana committed 2019-12-17 03:38:12 +01:00
1 parent 9e5ecaaf75
commit 1933d05e36
565 files changed
+11114 -13142

No files matched your search

@@ -47,10 +47,10 @@ import net.minecraftforge.fml.network.NetworkHooks;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
/*
@Mod(CustomTNTTest.MODID)
@Mod.EventBusSubscriber(modid = CustomTNTTest.MODID, bus = Bus.MOD)
public class CustomTNTTest {
static final String MODID = "custom_tnt_test";
static final String BLOCK_ID = "test_tnt";
@@ -94,14 +94,14 @@ 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.posX, tnt.posY, tnt.posZ, SoundEvents.ENTITY_TNT_PRIMED, SoundCategory.BLOCKS, 1.0F, 1.0F);
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);
}
}
}
/**
* Custom TNT Entity that has a fuse of a quarter length, and four times the explosion strength
*/
*//*
public static class CustomTNTEntity extends TNTEntity {
public CustomTNTEntity(EntityType<CustomTNTEntity> type, World world) {
@@ -122,7 +122,7 @@ public class CustomTNTTest {
@Override
protected void explode() {
this.world.createExplosion(this, this.posX, this.posY, this.posZ, 16.0F, Explosion.Mode.BREAK);
this.world.createExplosion(this, this.func_226277_ct_(), this.func_226278_cu_(), this.func_226281_cx_(), 16.0F, Explosion.Mode.BREAK);
}
@Nonnull
@@ -131,4 +131,5 @@ public class CustomTNTTest {
return NetworkHooks.getEntitySpawningPacket(this);
}
}
}
}
*/
@@ -30,7 +30,7 @@ public class FarmlandTrampleEventTest
@SubscribeEvent
public static void onFarmlandTrampled(BlockEvent.FarmlandTrampleEvent event)
{
if(event.getEntity().isSneaking())
if(event.getEntity().isCrouching())
event.setCanceled(true);
}
}
@@ -22,7 +22,6 @@ package net.minecraftforge.debug.block;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.material.Material;
import net.minecraft.entity.MobEntity;
import net.minecraft.pathfinding.PathNodeType;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockReader;
@@ -31,8 +30,6 @@ import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.registries.ObjectHolder;
import javax.annotation.Nullable;
@Mod(PathNodeTypeTest.MOD_ID)
@Mod.EventBusSubscriber
public class PathNodeTypeTest
@@ -44,20 +41,20 @@ public class PathNodeTypeTest
@ObjectHolder(BLOCK_ID)
private static Block TEST_BLOCK = null;
/*TODO
@SubscribeEvent
public static void register(RegistryEvent.Register<Block> event)
{
event.getRegistry().register((new Block(Block.Properties.create(Material.ROCK))
{
@Override
public PathNodeType getAiPathNodeType(BlockState state, IBlockReader world, BlockPos pos, @Nullable MobEntity entity)
public PathNodeType getAiPathNodeType(BlockState state, IBlockReader world, BlockPos pos)
{
return PathNodeType.DOOR_OPEN;
}
}).setRegistryName(MOD_ID, BLOCK_ID));
}
/*
@Mod.EventBusSubscriber(value = Dist.CLIENT, modid = MOD_ID)
public static class ClientEventHandler
{
@@ -25,8 +25,8 @@ import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.block.PistonBlock;
import net.minecraft.block.PistonBlockStructureHelper;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.PistonBlockStructureHelper;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.BlockItem;