1
0
Fork 0
This commit is contained in:
HoosierTransfer 2024-05-27 11:54:39 -04:00
parent d6847afd57
commit 2e72406727
22 changed files with 1199 additions and 159 deletions

View File

@ -0,0 +1,5 @@
{
"variants": {
"normal": { "model": "grass_path" }
}
}

View File

@ -0,0 +1,21 @@
{
"textures": {
"particle": "blocks/dirt",
"top": "blocks/grass_path_top",
"side": "blocks/grass_path_side",
"bottom": "blocks/dirt"
},
"elements": [
{ "from": [ 0, 0, 0 ],
"to": [ 16, 15, 16 ],
"faces": {
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#bottom", "cullface": "down" },
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#top" },
"north": { "uv": [ 0, 1, 16, 16 ], "texture": "#side", "cullface": "north" },
"south": { "uv": [ 0, 1, 16, 16 ], "texture": "#side", "cullface": "south" },
"west": { "uv": [ 0, 1, 16, 16 ], "texture": "#side", "cullface": "west" },
"east": { "uv": [ 0, 1, 16, 16 ], "texture": "#side", "cullface": "east" }
}
}
]
}

View File

@ -0,0 +1,3 @@
{
"parent": "block/grass_path"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 B

View File

@ -1642,6 +1642,8 @@ public class Block implements ILitBlock {
registerBlock(197, (String) "dark_oak_door", (new BlockDoor(Material.wood)).setHardness(3.0F)
.setStepSound(soundTypeWood).setUnlocalizedName("doorDarkOak").disableStats());
registerEaglerBlock(198, "end_rod", (new BlockEndRod()).setHardness(0.0F).setLightLevel(0.9375F)
.setStepSound(soundTypeWood).setUnlocalizedName("endRod"));
Block purpurBlock = (new Block(Material.rock)).setHardness(1.5F).setResistance(10.0F)
.setStepSound(soundTypeStone).setCreativeTab(CreativeTabs.tabBlock).setUnlocalizedName("purpurBlock");
registerEaglerBlock(201, (String) "purpur_block", purpurBlock);
@ -1660,6 +1662,9 @@ public class Block implements ILitBlock {
registerEaglerBlock(206, "end_bricks", (new Block(Material.rock)).setStepSound(soundTypeStone).setHardness(0.8F)
.setCreativeTab(CreativeTabs.tabBlock).setUnlocalizedName("endBricks"));
registerEaglerBlock(207, "beetroots", (new BlockBeetroot()).setUnlocalizedName("beetroots"), false);
Block block15 = (new BlockGrassPath()).setHardness(0.65F).setStepSound(soundTypeGrass)
.setUnlocalizedName("grassPath").disableStats();
registerEaglerBlock(208, "grass_path", block15);
blockRegistry.validateKey();
@ -1670,7 +1675,7 @@ public class Block implements ILitBlock {
boolean flag = false;
boolean flag1 = block13 instanceof BlockStairs;
boolean flag2 = block13 instanceof BlockSlab;
boolean flag3 = block13 == block6;
boolean flag3 = block13 == block6 || block13 == block15;
boolean flag4 = block13.translucent;
boolean flag5 = block13.lightOpacity == 0;
if (flag1 || flag2 || flag3 || flag4 || flag5) {

View File

@ -20,13 +20,6 @@ import net.minecraft.world.World;
public class BlockEndRod extends Block {
public static final PropertyDirection FACING = PropertyDirection.create("facing");
protected static final AxisAlignedBB END_ROD_VERTICAL_AABB = new AxisAlignedBB(0.375D, 0.0D, 0.375D, 0.625D, 1.0D,
0.625D);
protected static final AxisAlignedBB END_ROD_NS_AABB = new AxisAlignedBB(0.375D, 0.375D, 0.0D, 0.625D, 0.625D,
1.0D);
protected static final AxisAlignedBB END_ROD_EW_AABB = new AxisAlignedBB(0.0D, 0.375D, 0.375D, 1.0D, 0.625D,
0.625D);
protected BlockEndRod() {
super(Material.circuits);
this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.UP));
@ -45,11 +38,14 @@ public class BlockEndRod extends Block {
public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, BlockPos blockpos) {
IBlockState iblockstate = iblockaccess.getBlockState(blockpos);
if (iblockstate.getBlock() != this) {
return;
}
EnumFacing enumfacing = (EnumFacing) iblockstate.getValue(FACING);
switch (enumfacing.getAxis()) {
case X:
default:
this.setBlockBounds(0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);
this.setBlockBounds(0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);
break;
case Z:
@ -58,8 +54,7 @@ public class BlockEndRod extends Block {
break;
case Y:
this.setBlockBounds(0.0F, 0.375F, 0.375F, 1.0F, 0.625F,
0.625F);
this.setBlockBounds(0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);
}
}

View File

@ -1,5 +1,6 @@
package net.minecraft.block;
import net.hoosiertransfer.EaglerItems;
import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
import net.minecraft.block.material.Material;
@ -145,7 +146,8 @@ public class BlockFarmland extends Block {
case WEST:
case EAST:
Block block = iblockaccess.getBlockState(blockpos).getBlock();
return !block.isOpaqueCube() && block != Blocks.farmland;
return !block.isOpaqueCube() && block != Blocks.farmland
&& block != EaglerItems.getEaglerBlock("grass_path");
default:
return super.shouldSideBeRendered(iblockaccess, blockpos, enumfacing);
}

View File

@ -0,0 +1,91 @@
package net.minecraft.block;
import javax.annotation.Nullable;
import net.hoosiertransfer.EaglerItems;
import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumFacing;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
public class BlockGrassPath extends Block {
protected BlockGrassPath() {
super(Material.ground);
this.setLightOpacity(255);
}
public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos,
EnumFacing side) {
switch (side) {
case UP:
return true;
case NORTH:
case SOUTH:
case WEST:
case EAST:
IBlockState iblockstate = blockAccess.getBlockState(pos.offset(side));
Block block = iblockstate.getBlock();
return !iblockstate.getBlock().isOpaqueCube() && block != Blocks.farmland
&& block != EaglerItems.getEaglerBlock("grass_path");
default:
return super.shouldSideBeRendered(blockAccess, pos, side);
}
}
public AxisAlignedBB getCollisionBoundingBox(World world, BlockPos blockpos, IBlockState iblockstate) {
this.setBlockBoundsBasedOnState(world, blockpos);
return super.getCollisionBoundingBox(world, blockpos, iblockstate);
}
public AxisAlignedBB getSelectedBoundingBox(World world, BlockPos blockpos) {
this.setBlockBoundsBasedOnState(world, blockpos);
return super.getSelectedBoundingBox(world, blockpos);
}
public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, BlockPos blockpos) {
this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.9375F, 1.0F);
}
/**
* Used to determine ambient occlusion and culling when rebuilding chunks for
* render
*/
public boolean isOpaqueCube(IBlockState state) {
return false;
}
public boolean isFullCube(IBlockState state) {
return false;
}
@Nullable
/**
* Get the Item that this Block should drop when harvested.
*/
public Item getItemDropped(IBlockState state, EaglercraftRandom rand, int fortune) {
return Blocks.dirt.getItemDropped(
Blocks.dirt.getDefaultState().withProperty(BlockDirt.VARIANT, BlockDirt.DirtType.DIRT), rand, fortune);
}
public ItemStack getItem(World worldIn, BlockPos pos, IBlockState state) {
return new ItemStack(this);
}
public void onNeighborBlockChange(World world, BlockPos blockpos, IBlockState iblockstate, Block var4) {
super.onNeighborBlockChange(world, blockpos, iblockstate, var4);
if (world.getBlockState(blockpos.up()).getBlock().getMaterial().isSolid()) {
world.setBlockState(blockpos, Blocks.dirt.getDefaultState());
}
}
}

View File

@ -210,7 +210,6 @@ public class SoundHandler implements IResourceManagerReloadListener, ITickable {
* Play a sound
*/
public void playSound(ISound sound) {
System.out.println("Playing sound: " + sound.getSoundLocation().getResourcePath());
if (Config.audioEnabled() == false) {
return;
}

View File

@ -137,7 +137,7 @@ public class GuiOverlayDebug extends Gui {
}
private void drawFPS(int x, int y) {
this.fontRenderer.drawStringWithShadow(this.mc.renderGlobal.getDebugInfoShort(), x, y, 0xFFFFFF);
this.fontRenderer.drawStringWithShadow(this.mc.renderGlobal.getDebugInfoFps(), x, y, 0xFFFFFF);
}
private void drawXYZ(int x, int y) {

View File

@ -1055,27 +1055,36 @@ public class NetHandlerPlayClient implements INetHandlerPlayClient {
* inventory or an open (non-creative) container
*/
public void handleSetSlot(S2FPacketSetSlot packetIn) {
EntityPlayerSP entityplayersp = this.gameController.thePlayer;
if (packetIn.func_149175_c() == -1) {
entityplayersp.inventory.setItemStack(packetIn.func_149174_e());
EntityPlayer entityplayer = this.gameController.thePlayer;
if (packetIn.getWindowId() == -1) {
entityplayer.inventory.setItemStack(packetIn.getStack());
} else if (packetIn.getWindowId() == -2) {
entityplayer.inventory.setInventorySlotContents(packetIn.getSlot(),
packetIn.getStack());
} else {
boolean flag = false;
if (this.gameController.currentScreen instanceof GuiContainerCreative) {
GuiContainerCreative guicontainercreative = (GuiContainerCreative) this.gameController.currentScreen;
flag = guicontainercreative.getSelectedTabIndex() != CreativeTabs.tabInventory.getTabIndex();
}
if (packetIn.func_149175_c() == 0 && packetIn.func_149173_d() >= 36 && packetIn.func_149173_d() < 45) {
ItemStack itemstack = entityplayersp.inventoryContainer.getSlot(packetIn.func_149173_d()).getStack();
if (packetIn.func_149174_e() != null
&& (itemstack == null || itemstack.stackSize < packetIn.func_149174_e().stackSize)) {
packetIn.func_149174_e().animationsToGo = 5;
if (packetIn.getWindowId() == 0 && packetIn.getSlot() >= 36 &&
packetIn.getSlot() < 45) {
ItemStack itemstack = entityplayer.inventoryContainer.getSlot(packetIn.getSlot()).getStack();
if (packetIn.getStack() != null
&& (itemstack == null || itemstack.stackSize < packetIn.getStack().stackSize)) {
packetIn.getStack().animationsToGo = 5;
}
entityplayersp.inventoryContainer.putStackInSlot(packetIn.func_149173_d(), packetIn.func_149174_e());
} else if (packetIn.func_149175_c() == entityplayersp.openContainer.windowId
&& (packetIn.func_149175_c() != 0 || !flag)) {
entityplayersp.openContainer.putStackInSlot(packetIn.func_149173_d(), packetIn.func_149174_e());
entityplayer.inventoryContainer.putStackInSlot(packetIn.getSlot(),
packetIn.getStack());
} else if (packetIn.getWindowId() == entityplayer.openContainer.windowId
&& (packetIn.getWindowId() != 0 || !flag)) {
entityplayer.openContainer.putStackInSlot(packetIn.getSlot(),
packetIn.getStack());
}
}
@ -1109,11 +1118,12 @@ public class NetHandlerPlayClient implements INetHandlerPlayClient {
* container/inventory slot
*/
public void handleWindowItems(S30PacketWindowItems packetIn) {
EntityPlayerSP entityplayersp = this.gameController.thePlayer;
if (packetIn.func_148911_c() == 0) {
entityplayersp.inventoryContainer.putStacksInSlots(packetIn.getItemStacks());
} else if (packetIn.func_148911_c() == entityplayersp.openContainer.windowId) {
entityplayersp.openContainer.putStacksInSlots(packetIn.getItemStacks());
EntityPlayer entityplayer = this.gameController.thePlayer;
if (packetIn.getWindowId() == 0) {
entityplayer.inventoryContainer.putStacksInSlots(packetIn.getItemStacks());
} else if (packetIn.getWindowId() == entityplayer.openContainer.windowId) {
entityplayer.openContainer.putStacksInSlots(packetIn.getItemStacks());
}
}

View File

@ -2557,6 +2557,10 @@ public class RenderGlobal implements IWorldAccess, IResourceManagerReloadListene
+ ", " + renderDispatcher.getDebugInfo();
}
public String getDebugInfoFps() {
return Minecraft.getDebugFPS() + " fps";
}
public void alfheim$processLightUpdates() {
if (setLightUpdates.isEmpty())
return;

View File

@ -0,0 +1,912 @@
package net.minecraft.init;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.SoundEvent;
public class SoundEvents {
public static final SoundEvent AMBIENT_CAVE;
public static final SoundEvent BLOCK_ANVIL_BREAK;
public static final SoundEvent BLOCK_ANVIL_DESTROY;
public static final SoundEvent BLOCK_ANVIL_FALL;
public static final SoundEvent BLOCK_ANVIL_HIT;
public static final SoundEvent BLOCK_ANVIL_LAND;
public static final SoundEvent BLOCK_ANVIL_PLACE;
public static final SoundEvent BLOCK_ANVIL_STEP;
public static final SoundEvent BLOCK_ANVIL_USE;
public static final SoundEvent ENTITY_ARMORSTAND_BREAK;
public static final SoundEvent ENTITY_ARMORSTAND_FALL;
public static final SoundEvent ENTITY_ARMORSTAND_HIT;
public static final SoundEvent ENTITY_ARMORSTAND_PLACE;
public static final SoundEvent ITEM_ARMOR_EQUIP_CHAIN;
public static final SoundEvent ITEM_ARMOR_EQUIP_DIAMOND;
public static final SoundEvent ITEM_ARMOR_EQUIP_GENERIC;
public static final SoundEvent ITEM_ARMOR_EQUIP_GOLD;
public static final SoundEvent ITEM_ARMOR_EQUIP_IRON;
public static final SoundEvent ITEM_ARMOR_EQUIP_LEATHER;
public static final SoundEvent ENTITY_ARROW_HIT;
public static final SoundEvent ENTITY_ARROW_HIT_PLAYER;
public static final SoundEvent ENTITY_ARROW_SHOOT;
public static final SoundEvent ENTITY_BAT_AMBIENT;
public static final SoundEvent ENTITY_BAT_DEATH;
public static final SoundEvent ENTITY_BAT_HURT;
public static final SoundEvent ENTITY_BAT_LOOP;
public static final SoundEvent ENTITY_BAT_TAKEOFF;
public static final SoundEvent ENTITY_BLAZE_AMBIENT;
public static final SoundEvent ENTITY_BLAZE_BURN;
public static final SoundEvent ENTITY_BLAZE_DEATH;
public static final SoundEvent ENTITY_BLAZE_HURT;
public static final SoundEvent ENTITY_BLAZE_SHOOT;
public static final SoundEvent ENTITY_BOBBER_SPLASH;
public static final SoundEvent ENTITY_BOBBER_THROW;
public static final SoundEvent ITEM_BOTTLE_FILL;
public static final SoundEvent ITEM_BOTTLE_FILL_DRAGONBREATH;
public static final SoundEvent BLOCK_BREWING_STAND_BREW;
public static final SoundEvent ITEM_BUCKET_EMPTY;
public static final SoundEvent ITEM_BUCKET_EMPTY_LAVA;
public static final SoundEvent ITEM_BUCKET_FILL;
public static final SoundEvent ITEM_BUCKET_FILL_LAVA;
public static final SoundEvent ENTITY_CAT_AMBIENT;
public static final SoundEvent ENTITY_CAT_DEATH;
public static final SoundEvent ENTITY_CAT_HISS;
public static final SoundEvent ENTITY_CAT_HURT;
public static final SoundEvent ENTITY_CAT_PURR;
public static final SoundEvent ENTITY_CAT_PURREOW;
public static final SoundEvent BLOCK_CHEST_CLOSE;
public static final SoundEvent BLOCK_CHEST_LOCKED;
public static final SoundEvent BLOCK_CHEST_OPEN;
public static final SoundEvent ENTITY_CHICKEN_AMBIENT;
public static final SoundEvent ENTITY_CHICKEN_DEATH;
public static final SoundEvent ENTITY_CHICKEN_EGG;
public static final SoundEvent ENTITY_CHICKEN_HURT;
public static final SoundEvent ENTITY_CHICKEN_STEP;
public static final SoundEvent BLOCK_CHORUS_FLOWER_DEATH;
public static final SoundEvent BLOCK_CHORUS_FLOWER_GROW;
public static final SoundEvent ITEM_CHORUS_FRUIT_TELEPORT;
public static final SoundEvent BLOCK_CLOTH_BREAK;
public static final SoundEvent BLOCK_CLOTH_FALL;
public static final SoundEvent BLOCK_CLOTH_HIT;
public static final SoundEvent BLOCK_CLOTH_PLACE;
public static final SoundEvent BLOCK_CLOTH_STEP;
public static final SoundEvent BLOCK_COMPARATOR_CLICK;
public static final SoundEvent ENTITY_COW_AMBIENT;
public static final SoundEvent ENTITY_COW_DEATH;
public static final SoundEvent ENTITY_COW_HURT;
public static final SoundEvent ENTITY_COW_MILK;
public static final SoundEvent ENTITY_COW_STEP;
public static final SoundEvent ENTITY_CREEPER_DEATH;
public static final SoundEvent ENTITY_CREEPER_HURT;
public static final SoundEvent ENTITY_CREEPER_PRIMED;
public static final SoundEvent BLOCK_DISPENSER_DISPENSE;
public static final SoundEvent BLOCK_DISPENSER_FAIL;
public static final SoundEvent BLOCK_DISPENSER_LAUNCH;
public static final SoundEvent ENTITY_DONKEY_AMBIENT;
public static final SoundEvent ENTITY_DONKEY_ANGRY;
public static final SoundEvent ENTITY_DONKEY_CHEST;
public static final SoundEvent ENTITY_DONKEY_DEATH;
public static final SoundEvent ENTITY_DONKEY_HURT;
public static final SoundEvent ENTITY_EGG_THROW;
public static final SoundEvent ENTITY_ELDER_GUARDIAN_AMBIENT;
public static final SoundEvent ENTITY_ELDERGUARDIAN_AMBIENTLAND;
public static final SoundEvent ENTITY_ELDER_GUARDIAN_CURSE;
public static final SoundEvent ENTITY_ELDER_GUARDIAN_DEATH;
public static final SoundEvent ENTITY_ELDER_GUARDIAN_DEATH_LAND;
public static final SoundEvent ENTITY_ELDER_GUARDIAN_HURT;
public static final SoundEvent ENTITY_ELDER_GUARDIAN_HURT_LAND;
public static final SoundEvent field_189426_aK;
public static final SoundEvent BLOCK_ENDERCHEST_CLOSE;
public static final SoundEvent BLOCK_ENDERCHEST_OPEN;
public static final SoundEvent ENTITY_ENDERDRAGON_AMBIENT;
public static final SoundEvent ENTITY_ENDERDRAGON_DEATH;
public static final SoundEvent ENTITY_ENDERDRAGON_FIREBALL_EPLD;
public static final SoundEvent ENTITY_ENDERDRAGON_FLAP;
public static final SoundEvent ENTITY_ENDERDRAGON_GROWL;
public static final SoundEvent ENTITY_ENDERDRAGON_HURT;
public static final SoundEvent ENTITY_ENDERDRAGON_SHOOT;
public static final SoundEvent ENTITY_ENDEREYE_LAUNCH;
public static final SoundEvent ENTITY_ENDERMEN_AMBIENT;
public static final SoundEvent ENTITY_ENDERMEN_DEATH;
public static final SoundEvent ENTITY_ENDERMEN_HURT;
public static final SoundEvent ENTITY_ENDERMEN_SCREAM;
public static final SoundEvent ENTITY_ENDERMEN_STARE;
public static final SoundEvent ENTITY_ENDERMEN_TELEPORT;
public static final SoundEvent ENTITY_ENDERMITE_AMBIENT;
public static final SoundEvent ENTITY_ENDERMITE_DEATH;
public static final SoundEvent ENTITY_ENDERMITE_HURT;
public static final SoundEvent ENTITY_ENDERMITE_STEP;
public static final SoundEvent ENTITY_ENDERPEARL_THROW;
public static final SoundEvent BLOCK_END_GATEWAY_SPAWN;
public static final SoundEvent ENTITY_EXPERIENCE_BOTTLE_THROW;
public static final SoundEvent ENTITY_EXPERIENCE_ORB_PICKUP;
public static final SoundEvent ENTITY_EXPERIENCE_ORB_TOUCH;
public static final SoundEvent BLOCK_FENCE_GATE_CLOSE;
public static final SoundEvent BLOCK_FENCE_GATE_OPEN;
public static final SoundEvent ITEM_FIRECHARGE_USE;
public static final SoundEvent ENTITY_FIREWORK_BLAST;
public static final SoundEvent ENTITY_FIREWORK_BLAST_FAR;
public static final SoundEvent ENTITY_FIREWORK_LARGE_BLAST;
public static final SoundEvent ENTITY_FIREWORK_LARGE_BLAST_FAR;
public static final SoundEvent ENTITY_FIREWORK_LAUNCH;
public static final SoundEvent ENTITY_FIREWORK_SHOOT;
public static final SoundEvent ENTITY_FIREWORK_TWINKLE;
public static final SoundEvent ENTITY_FIREWORK_TWINKLE_FAR;
public static final SoundEvent BLOCK_FIRE_AMBIENT;
public static final SoundEvent BLOCK_FIRE_EXTINGUISH;
public static final SoundEvent ITEM_FLINTANDSTEEL_USE;
public static final SoundEvent BLOCK_FURNACE_FIRE_CRACKLE;
public static final SoundEvent ENTITY_GENERIC_BIG_FALL;
public static final SoundEvent ENTITY_GENERIC_BURN;
public static final SoundEvent ENTITY_GENERIC_DEATH;
public static final SoundEvent ENTITY_GENERIC_DRINK;
public static final SoundEvent ENTITY_GENERIC_EAT;
public static final SoundEvent ENTITY_GENERIC_EXPLODE;
public static final SoundEvent ENTITY_GENERIC_EXTINGUISH_FIRE;
public static final SoundEvent ENTITY_GENERIC_HURT;
public static final SoundEvent ENTITY_GENERIC_SMALL_FALL;
public static final SoundEvent ENTITY_GENERIC_SPLASH;
public static final SoundEvent ENTITY_GENERIC_SWIM;
public static final SoundEvent ENTITY_GHAST_AMBIENT;
public static final SoundEvent ENTITY_GHAST_DEATH;
public static final SoundEvent ENTITY_GHAST_HURT;
public static final SoundEvent ENTITY_GHAST_SCREAM;
public static final SoundEvent ENTITY_GHAST_SHOOT;
public static final SoundEvent ENTITY_GHAST_WARN;
public static final SoundEvent BLOCK_GLASS_BREAK;
public static final SoundEvent BLOCK_GLASS_FALL;
public static final SoundEvent BLOCK_GLASS_HIT;
public static final SoundEvent BLOCK_GLASS_PLACE;
public static final SoundEvent BLOCK_GLASS_STEP;
public static final SoundEvent BLOCK_GRASS_BREAK;
public static final SoundEvent BLOCK_GRASS_FALL;
public static final SoundEvent BLOCK_GRASS_HIT;
public static final SoundEvent BLOCK_GRASS_PLACE;
public static final SoundEvent BLOCK_GRASS_STEP;
public static final SoundEvent BLOCK_GRAVEL_BREAK;
public static final SoundEvent BLOCK_GRAVEL_FALL;
public static final SoundEvent BLOCK_GRAVEL_HIT;
public static final SoundEvent BLOCK_GRAVEL_PLACE;
public static final SoundEvent BLOCK_GRAVEL_STEP;
public static final SoundEvent ENTITY_GUARDIAN_AMBIENT;
public static final SoundEvent ENTITY_GUARDIAN_AMBIENT_LAND;
public static final SoundEvent ENTITY_GUARDIAN_ATTACK;
public static final SoundEvent ENTITY_GUARDIAN_DEATH;
public static final SoundEvent ENTITY_GUARDIAN_DEATH_LAND;
public static final SoundEvent ENTITY_GUARDIAN_FLOP;
public static final SoundEvent ENTITY_GUARDIAN_HURT;
public static final SoundEvent ENTITY_GUARDIAN_HURT_LAND;
public static final SoundEvent ITEM_HOE_TILL;
public static final SoundEvent ENTITY_HORSE_AMBIENT;
public static final SoundEvent ENTITY_HORSE_ANGRY;
public static final SoundEvent ENTITY_HORSE_ARMOR;
public static final SoundEvent ENTITY_HORSE_BREATHE;
public static final SoundEvent ENTITY_HORSE_DEATH;
public static final SoundEvent ENTITY_HORSE_EAT;
public static final SoundEvent ENTITY_HORSE_GALLOP;
public static final SoundEvent ENTITY_HORSE_HURT;
public static final SoundEvent ENTITY_HORSE_JUMP;
public static final SoundEvent ENTITY_HORSE_LAND;
public static final SoundEvent ENTITY_HORSE_SADDLE;
public static final SoundEvent ENTITY_HORSE_STEP;
public static final SoundEvent ENTITY_HORSE_STEP_WOOD;
public static final SoundEvent ENTITY_HOSTILE_BIG_FALL;
public static final SoundEvent ENTITY_HOSTILE_DEATH;
public static final SoundEvent ENTITY_HOSTILE_HURT;
public static final SoundEvent ENTITY_HOSTILE_SMALL_FALL;
public static final SoundEvent ENTITY_HOSTILE_SPLASH;
public static final SoundEvent ENTITY_HOSTILE_SWIM;
public static final SoundEvent ENTITY_IRONGOLEM_ATTACK;
public static final SoundEvent ENTITY_IRONGOLEM_DEATH;
public static final SoundEvent ENTITY_IRONGOLEM_HURT;
public static final SoundEvent ENTITY_IRONGOLEM_STEP;
public static final SoundEvent BLOCK_IRON_DOOR_CLOSE;
public static final SoundEvent BLOCK_IRON_DOOR_OPEN;
public static final SoundEvent BLOCK_IRON_TRAPDOOR_CLOSE;
public static final SoundEvent BLOCK_IRON_TRAPDOOR_OPEN;
public static final SoundEvent ENTITY_ITEMFRAME_ADD_ITEM;
public static final SoundEvent ENTITY_ITEMFRAME_BREAK;
public static final SoundEvent ENTITY_ITEMFRAME_PLACE;
public static final SoundEvent ENTITY_ITEMFRAME_REMOVE_ITEM;
public static final SoundEvent ENTITY_ITEMFRAME_ROTATE_ITEM;
public static final SoundEvent ENTITY_ITEM_BREAK;
public static final SoundEvent ENTITY_ITEM_PICKUP;
public static final SoundEvent BLOCK_LADDER_BREAK;
public static final SoundEvent BLOCK_LADDER_FALL;
public static final SoundEvent BLOCK_LADDER_HIT;
public static final SoundEvent BLOCK_LADDER_PLACE;
public static final SoundEvent BLOCK_LADDER_STEP;
public static final SoundEvent BLOCK_LAVA_AMBIENT;
public static final SoundEvent BLOCK_LAVA_EXTINGUISH;
public static final SoundEvent BLOCK_LAVA_POP;
public static final SoundEvent ENTITY_LEASHKNOT_BREAK;
public static final SoundEvent ENTITY_LEASHKNOT_PLACE;
public static final SoundEvent BLOCK_LEVER_CLICK;
public static final SoundEvent ENTITY_LIGHTNING_IMPACT;
public static final SoundEvent ENTITY_LIGHTNING_THUNDER;
public static final SoundEvent ENTITY_LINGERINGPOTION_THROW;
public static final SoundEvent ENTITY_MAGMACUBE_DEATH;
public static final SoundEvent ENTITY_MAGMACUBE_HURT;
public static final SoundEvent ENTITY_MAGMACUBE_JUMP;
public static final SoundEvent ENTITY_MAGMACUBE_SQUISH;
public static final SoundEvent BLOCK_METAL_BREAK;
public static final SoundEvent BLOCK_METAL_FALL;
public static final SoundEvent BLOCK_METAL_HIT;
public static final SoundEvent BLOCK_METAL_PLACE;
public static final SoundEvent BLOCK_METAL_PRESSPLATE_CLICK_OFF;
public static final SoundEvent BLOCK_METAL_PRESSPLATE_CLICK_ON;
public static final SoundEvent BLOCK_METAL_STEP;
public static final SoundEvent ENTITY_MINECART_INSIDE;
public static final SoundEvent ENTITY_MINECART_RIDING;
public static final SoundEvent ENTITY_MOOSHROOM_SHEAR;
public static final SoundEvent ENTITY_MULE_AMBIENT;
public static final SoundEvent ENTITY_MULE_DEATH;
public static final SoundEvent ENTITY_MULE_HURT;
public static final SoundEvent MUSIC_CREATIVE;
public static final SoundEvent MUSIC_CREDITS;
public static final SoundEvent MUSIC_DRAGON;
public static final SoundEvent MUSIC_END;
public static final SoundEvent MUSIC_GAME;
public static final SoundEvent MUSIC_MENU;
public static final SoundEvent MUSIC_NETHER;
public static final SoundEvent BLOCK_NOTE_BASEDRUM;
public static final SoundEvent BLOCK_NOTE_BASS;
public static final SoundEvent BLOCK_NOTE_HARP;
public static final SoundEvent BLOCK_NOTE_HAT;
public static final SoundEvent BLOCK_NOTE_PLING;
public static final SoundEvent BLOCK_NOTE_SNARE;
public static final SoundEvent ENTITY_PAINTING_BREAK;
public static final SoundEvent ENTITY_PAINTING_PLACE;
public static final SoundEvent ENTITY_PIG_AMBIENT;
public static final SoundEvent ENTITY_PIG_DEATH;
public static final SoundEvent ENTITY_PIG_HURT;
public static final SoundEvent ENTITY_PIG_SADDLE;
public static final SoundEvent ENTITY_PIG_STEP;
public static final SoundEvent BLOCK_PISTON_CONTRACT;
public static final SoundEvent BLOCK_PISTON_EXTEND;
public static final SoundEvent ENTITY_PLAYER_ATTACK_CRIT;
public static final SoundEvent ENTITY_PLAYER_ATTACK_KNOCKBACK;
public static final SoundEvent ENTITY_PLAYER_ATTACK_NODAMAGE;
public static final SoundEvent ENTITY_PLAYER_ATTACK_STRONG;
public static final SoundEvent ENTITY_PLAYER_ATTACK_SWEEP;
public static final SoundEvent ENTITY_PLAYER_ATTACK_WEAK;
public static final SoundEvent ENTITY_PLAYER_BIG_FALL;
public static final SoundEvent ENTITY_PLAYER_BREATH;
public static final SoundEvent ENTITY_PLAYER_BURP;
public static final SoundEvent ENTITY_PLAYER_DEATH;
public static final SoundEvent ENTITY_PLAYER_HURT;
public static final SoundEvent ENTITY_PLAYER_LEVELUP;
public static final SoundEvent ENTITY_PLAYER_SMALL_FALL;
public static final SoundEvent ENTITY_PLAYER_SPLASH;
public static final SoundEvent ENTITY_PLAYER_SWIM;
public static final SoundEvent BLOCK_PORTAL_AMBIENT;
public static final SoundEvent BLOCK_PORTAL_TRAVEL;
public static final SoundEvent BLOCK_PORTAL_TRIGGER;
public static final SoundEvent ENTITY_RABBIT_AMBIENT;
public static final SoundEvent ENTITY_RABBIT_ATTACK;
public static final SoundEvent ENTITY_RABBIT_DEATH;
public static final SoundEvent ENTITY_RABBIT_HURT;
public static final SoundEvent ENTITY_RABBIT_JUMP;
public static final SoundEvent RECORD_11;
public static final SoundEvent RECORD_13;
public static final SoundEvent RECORD_BLOCKS;
public static final SoundEvent RECORD_CAT;
public static final SoundEvent RECORD_CHIRP;
public static final SoundEvent RECORD_FAR;
public static final SoundEvent RECORD_MALL;
public static final SoundEvent RECORD_MELLOHI;
public static final SoundEvent RECORD_STAL;
public static final SoundEvent RECORD_STRAD;
public static final SoundEvent RECORD_WAIT;
public static final SoundEvent RECORD_WARD;
public static final SoundEvent BLOCK_REDSTONE_TORCH_BURNOUT;
public static final SoundEvent BLOCK_SAND_BREAK;
public static final SoundEvent BLOCK_SAND_FALL;
public static final SoundEvent BLOCK_SAND_HIT;
public static final SoundEvent BLOCK_SAND_PLACE;
public static final SoundEvent BLOCK_SAND_STEP;
public static final SoundEvent ENTITY_SHEEP_AMBIENT;
public static final SoundEvent ENTITY_SHEEP_DEATH;
public static final SoundEvent ENTITY_SHEEP_HURT;
public static final SoundEvent ENTITY_SHEEP_SHEAR;
public static final SoundEvent ENTITY_SHEEP_STEP;
public static final SoundEvent ITEM_SHIELD_BLOCK;
public static final SoundEvent ITEM_SHIELD_BREAK;
public static final SoundEvent ITEM_SHOVEL_FLATTEN;
public static final SoundEvent ENTITY_SHULKER_AMBIENT;
public static final SoundEvent ENTITY_SHULKER_BULLET_HIT;
public static final SoundEvent ENTITY_SHULKER_BULLET_HURT;
public static final SoundEvent ENTITY_SHULKER_CLOSE;
public static final SoundEvent ENTITY_SHULKER_DEATH;
public static final SoundEvent ENTITY_SHULKER_HURT;
public static final SoundEvent ENTITY_SHULKER_HURT_CLOSED;
public static final SoundEvent ENTITY_SHULKER_OPEN;
public static final SoundEvent ENTITY_SHULKER_SHOOT;
public static final SoundEvent ENTITY_SHULKER_TELEPORT;
public static final SoundEvent ENTITY_SILVERFISH_AMBIENT;
public static final SoundEvent ENTITY_SILVERFISH_DEATH;
public static final SoundEvent ENTITY_SILVERFISH_HURT;
public static final SoundEvent ENTITY_SILVERFISH_STEP;
public static final SoundEvent ENTITY_SKELETON_AMBIENT;
public static final SoundEvent ENTITY_SKELETON_DEATH;
public static final SoundEvent ENTITY_SKELETON_HORSE_AMBIENT;
public static final SoundEvent ENTITY_SKELETON_HORSE_DEATH;
public static final SoundEvent ENTITY_SKELETON_HORSE_HURT;
public static final SoundEvent ENTITY_SKELETON_HURT;
public static final SoundEvent ENTITY_SKELETON_SHOOT;
public static final SoundEvent ENTITY_SKELETON_STEP;
public static final SoundEvent ENTITY_SLIME_ATTACK;
public static final SoundEvent BLOCK_SLIME_BREAK;
public static final SoundEvent ENTITY_SLIME_DEATH;
public static final SoundEvent BLOCK_SLIME_FALL;
public static final SoundEvent BLOCK_SLIME_HIT;
public static final SoundEvent ENTITY_SLIME_HURT;
public static final SoundEvent ENTITY_SLIME_JUMP;
public static final SoundEvent BLOCK_SLIME_PLACE;
public static final SoundEvent ENTITY_SLIME_SQUISH;
public static final SoundEvent BLOCK_SLIME_STEP;
public static final SoundEvent ENTITY_SMALL_MAGMACUBE_DEATH;
public static final SoundEvent ENTITY_SMALL_MAGMACUBE_HURT;
public static final SoundEvent ENTITY_SMALL_MAGMACUBE_SQUISH;
public static final SoundEvent ENTITY_SMALL_SLIME_DEATH;
public static final SoundEvent ENTITY_SMALL_SLIME_HURT;
public static final SoundEvent ENTITY_SMALL_SLIME_JUMP;
public static final SoundEvent ENTITY_SMALL_SLIME_SQUISH;
public static final SoundEvent ENTITY_SNOWBALL_THROW;
public static final SoundEvent ENTITY_SNOWMAN_AMBIENT;
public static final SoundEvent ENTITY_SNOWMAN_DEATH;
public static final SoundEvent ENTITY_SNOWMAN_HURT;
public static final SoundEvent ENTITY_SNOWMAN_SHOOT;
public static final SoundEvent BLOCK_SNOW_BREAK;
public static final SoundEvent BLOCK_SNOW_FALL;
public static final SoundEvent BLOCK_SNOW_HIT;
public static final SoundEvent BLOCK_SNOW_PLACE;
public static final SoundEvent BLOCK_SNOW_STEP;
public static final SoundEvent ENTITY_SPIDER_AMBIENT;
public static final SoundEvent ENTITY_SPIDER_DEATH;
public static final SoundEvent ENTITY_SPIDER_HURT;
public static final SoundEvent ENTITY_SPIDER_STEP;
public static final SoundEvent ENTITY_SPLASH_POTION_BREAK;
public static final SoundEvent ENTITY_SPLASH_POTION_THROW;
public static final SoundEvent ENTITY_SQUID_AMBIENT;
public static final SoundEvent ENTITY_SQUID_DEATH;
public static final SoundEvent ENTITY_SQUID_HURT;
public static final SoundEvent BLOCK_STONE_BREAK;
public static final SoundEvent BLOCK_STONE_BUTTON_CLICK_OFF;
public static final SoundEvent BLOCK_STONE_BUTTON_CLICK_ON;
public static final SoundEvent BLOCK_STONE_FALL;
public static final SoundEvent BLOCK_STONE_HIT;
public static final SoundEvent BLOCK_STONE_PLACE;
public static final SoundEvent BLOCK_STONE_PRESSPLATE_CLICK_OFF;
public static final SoundEvent BLOCK_STONE_PRESSPLATE_CLICK_ON;
public static final SoundEvent BLOCK_STONE_STEP;
public static final SoundEvent ENCHANT_THORNS_HIT;
public static final SoundEvent ENTITY_TNT_PRIMED;
public static final SoundEvent BLOCK_TRIPWIRE_ATTACH;
public static final SoundEvent BLOCK_TRIPWIRE_CLICK_OFF;
public static final SoundEvent BLOCK_TRIPWIRE_CLICK_ON;
public static final SoundEvent BLOCK_TRIPWIRE_DETACH;
public static final SoundEvent UI_BUTTON_CLICK;
public static final SoundEvent ENTITY_VILLAGER_AMBIENT;
public static final SoundEvent ENTITY_VILLAGER_DEATH;
public static final SoundEvent ENTITY_VILLAGER_HURT;
public static final SoundEvent ENTITY_VILLAGER_NO;
public static final SoundEvent ENTITY_VILLAGER_TRADING;
public static final SoundEvent ENTITY_VILLAGER_YES;
public static final SoundEvent BLOCK_WATERLILY_PLACE;
public static final SoundEvent BLOCK_WATER_AMBIENT;
public static final SoundEvent WEATHER_RAIN;
public static final SoundEvent WEATHER_RAIN_ABOVE;
public static final SoundEvent ENTITY_WITCH_AMBIENT;
public static final SoundEvent ENTITY_WITCH_DEATH;
public static final SoundEvent ENTITY_WITCH_DRINK;
public static final SoundEvent ENTITY_WITCH_HURT;
public static final SoundEvent ENTITY_WITCH_THROW;
public static final SoundEvent ENTITY_WITHER_AMBIENT;
public static final SoundEvent ENTITY_WITHER_BREAK_BLOCK;
public static final SoundEvent ENTITY_WITHER_DEATH;
public static final SoundEvent ENTITY_WITHER_HURT;
public static final SoundEvent ENTITY_WITHER_SHOOT;
public static final SoundEvent ENTITY_WITHER_SPAWN;
public static final SoundEvent ENTITY_WOLF_AMBIENT;
public static final SoundEvent ENTITY_WOLF_DEATH;
public static final SoundEvent ENTITY_WOLF_GROWL;
public static final SoundEvent ENTITY_WOLF_HOWL;
public static final SoundEvent ENTITY_WOLF_HURT;
public static final SoundEvent ENTITY_WOLF_PANT;
public static final SoundEvent ENTITY_WOLF_SHAKE;
public static final SoundEvent ENTITY_WOLF_STEP;
public static final SoundEvent ENTITY_WOLF_WHINE;
public static final SoundEvent BLOCK_WOODEN_DOOR_CLOSE;
public static final SoundEvent BLOCK_WOODEN_DOOR_OPEN;
public static final SoundEvent BLOCK_WOODEN_TRAPDOOR_CLOSE;
public static final SoundEvent BLOCK_WOODEN_TRAPDOOR_OPEN;
public static final SoundEvent BLOCK_WOOD_BREAK;
public static final SoundEvent BLOCK_WOOD_BUTTON_CLICK_OFF;
public static final SoundEvent BLOCK_WOOD_BUTTON_CLICK_ON;
public static final SoundEvent BLOCK_WOOD_FALL;
public static final SoundEvent BLOCK_WOOD_HIT;
public static final SoundEvent BLOCK_WOOD_PLACE;
public static final SoundEvent BLOCK_WOOD_PRESSPLATE_CLICK_OFF;
public static final SoundEvent BLOCK_WOOD_PRESSPLATE_CLICK_ON;
public static final SoundEvent BLOCK_WOOD_STEP;
public static final SoundEvent ENTITY_ZOMBIE_AMBIENT;
public static final SoundEvent ENTITY_ZOMBIE_ATTACK_DOOR_WOOD;
public static final SoundEvent ENTITY_ZOMBIE_ATTACK_IRON_DOOR;
public static final SoundEvent ENTITY_ZOMBIE_BREAK_DOOR_WOOD;
public static final SoundEvent ENTITY_ZOMBIE_DEATH;
public static final SoundEvent ENTITY_ZOMBIE_HORSE_AMBIENT;
public static final SoundEvent ENTITY_ZOMBIE_HORSE_DEATH;
public static final SoundEvent ENTITY_ZOMBIE_HORSE_HURT;
public static final SoundEvent ENTITY_ZOMBIE_HURT;
public static final SoundEvent ENTITY_ZOMBIE_INFECT;
public static final SoundEvent ENTITY_ZOMBIE_PIG_AMBIENT;
public static final SoundEvent ENTITY_ZOMBIE_PIG_ANGRY;
public static final SoundEvent ENTITY_ZOMBIE_PIG_DEATH;
public static final SoundEvent ENTITY_ZOMBIE_PIG_HURT;
public static final SoundEvent ENTITY_ZOMBIE_STEP;
public static final SoundEvent ENTITY_ZOMBIE_VILLAGER_AMBIENT;
public static final SoundEvent ENTITY_ZOMBIE_VILLAGER_CONVERTED;
public static final SoundEvent ENTITY_ZOMBIE_VILLAGER_CURE;
public static final SoundEvent ENTITY_ZOMBIE_VILLAGER_DEATH;
public static final SoundEvent ENTITY_ZOMBIE_VILLAGER_HURT;
public static final SoundEvent ENTITY_ZOMBIE_VILLAGER_STEP;
private static SoundEvent getRegisteredSoundEvent(String id) {
SoundEvent soundevent = (SoundEvent) SoundEvent.REGISTRY.getObject(new ResourceLocation(id));
if (soundevent == null) {
throw new IllegalStateException("Invalid Sound requested: " + id);
} else {
return soundevent;
}
}
static {
if (!Bootstrap.isRegistered()) {
throw new RuntimeException("Accessed Sounds before Bootstrap!");
} else {
AMBIENT_CAVE = getRegisteredSoundEvent("ambient.cave");
BLOCK_ANVIL_BREAK = getRegisteredSoundEvent("block.anvil.break");
BLOCK_ANVIL_DESTROY = getRegisteredSoundEvent("block.anvil.destroy");
BLOCK_ANVIL_FALL = getRegisteredSoundEvent("block.anvil.fall");
BLOCK_ANVIL_HIT = getRegisteredSoundEvent("block.anvil.hit");
BLOCK_ANVIL_LAND = getRegisteredSoundEvent("block.anvil.land");
BLOCK_ANVIL_PLACE = getRegisteredSoundEvent("block.anvil.place");
BLOCK_ANVIL_STEP = getRegisteredSoundEvent("block.anvil.step");
BLOCK_ANVIL_USE = getRegisteredSoundEvent("block.anvil.use");
ENTITY_ARMORSTAND_BREAK = getRegisteredSoundEvent("entity.armorstand.break");
ENTITY_ARMORSTAND_FALL = getRegisteredSoundEvent("entity.armorstand.fall");
ENTITY_ARMORSTAND_HIT = getRegisteredSoundEvent("entity.armorstand.hit");
ENTITY_ARMORSTAND_PLACE = getRegisteredSoundEvent("entity.armorstand.place");
ITEM_ARMOR_EQUIP_CHAIN = getRegisteredSoundEvent("item.armor.equip_chain");
ITEM_ARMOR_EQUIP_DIAMOND = getRegisteredSoundEvent("item.armor.equip_diamond");
ITEM_ARMOR_EQUIP_GENERIC = getRegisteredSoundEvent("item.armor.equip_generic");
ITEM_ARMOR_EQUIP_GOLD = getRegisteredSoundEvent("item.armor.equip_gold");
ITEM_ARMOR_EQUIP_IRON = getRegisteredSoundEvent("item.armor.equip_iron");
ITEM_ARMOR_EQUIP_LEATHER = getRegisteredSoundEvent("item.armor.equip_leather");
ENTITY_ARROW_HIT = getRegisteredSoundEvent("entity.arrow.hit");
ENTITY_ARROW_HIT_PLAYER = getRegisteredSoundEvent("entity.arrow.hit_player");
ENTITY_ARROW_SHOOT = getRegisteredSoundEvent("entity.arrow.shoot");
ENTITY_BAT_AMBIENT = getRegisteredSoundEvent("entity.bat.ambient");
ENTITY_BAT_DEATH = getRegisteredSoundEvent("entity.bat.death");
ENTITY_BAT_HURT = getRegisteredSoundEvent("entity.bat.hurt");
ENTITY_BAT_LOOP = getRegisteredSoundEvent("entity.bat.loop");
ENTITY_BAT_TAKEOFF = getRegisteredSoundEvent("entity.bat.takeoff");
ENTITY_BLAZE_AMBIENT = getRegisteredSoundEvent("entity.blaze.ambient");
ENTITY_BLAZE_BURN = getRegisteredSoundEvent("entity.blaze.burn");
ENTITY_BLAZE_DEATH = getRegisteredSoundEvent("entity.blaze.death");
ENTITY_BLAZE_HURT = getRegisteredSoundEvent("entity.blaze.hurt");
ENTITY_BLAZE_SHOOT = getRegisteredSoundEvent("entity.blaze.shoot");
ENTITY_BOBBER_SPLASH = getRegisteredSoundEvent("entity.bobber.splash");
ENTITY_BOBBER_THROW = getRegisteredSoundEvent("entity.bobber.throw");
ITEM_BOTTLE_FILL = getRegisteredSoundEvent("item.bottle.fill");
ITEM_BOTTLE_FILL_DRAGONBREATH = getRegisteredSoundEvent("item.bottle.fill_dragonbreath");
BLOCK_BREWING_STAND_BREW = getRegisteredSoundEvent("block.brewing_stand.brew");
ITEM_BUCKET_EMPTY = getRegisteredSoundEvent("item.bucket.empty");
ITEM_BUCKET_EMPTY_LAVA = getRegisteredSoundEvent("item.bucket.empty_lava");
ITEM_BUCKET_FILL = getRegisteredSoundEvent("item.bucket.fill");
ITEM_BUCKET_FILL_LAVA = getRegisteredSoundEvent("item.bucket.fill_lava");
ENTITY_CAT_AMBIENT = getRegisteredSoundEvent("entity.cat.ambient");
ENTITY_CAT_DEATH = getRegisteredSoundEvent("entity.cat.death");
ENTITY_CAT_HISS = getRegisteredSoundEvent("entity.cat.hiss");
ENTITY_CAT_HURT = getRegisteredSoundEvent("entity.cat.hurt");
ENTITY_CAT_PURR = getRegisteredSoundEvent("entity.cat.purr");
ENTITY_CAT_PURREOW = getRegisteredSoundEvent("entity.cat.purreow");
BLOCK_CHEST_CLOSE = getRegisteredSoundEvent("block.chest.close");
BLOCK_CHEST_LOCKED = getRegisteredSoundEvent("block.chest.locked");
BLOCK_CHEST_OPEN = getRegisteredSoundEvent("block.chest.open");
ENTITY_CHICKEN_AMBIENT = getRegisteredSoundEvent("entity.chicken.ambient");
ENTITY_CHICKEN_DEATH = getRegisteredSoundEvent("entity.chicken.death");
ENTITY_CHICKEN_EGG = getRegisteredSoundEvent("entity.chicken.egg");
ENTITY_CHICKEN_HURT = getRegisteredSoundEvent("entity.chicken.hurt");
ENTITY_CHICKEN_STEP = getRegisteredSoundEvent("entity.chicken.step");
BLOCK_CHORUS_FLOWER_DEATH = getRegisteredSoundEvent("block.chorus_flower.death");
BLOCK_CHORUS_FLOWER_GROW = getRegisteredSoundEvent("block.chorus_flower.grow");
ITEM_CHORUS_FRUIT_TELEPORT = getRegisteredSoundEvent("item.chorus_fruit.teleport");
BLOCK_CLOTH_BREAK = getRegisteredSoundEvent("block.cloth.break");
BLOCK_CLOTH_FALL = getRegisteredSoundEvent("block.cloth.fall");
BLOCK_CLOTH_HIT = getRegisteredSoundEvent("block.cloth.hit");
BLOCK_CLOTH_PLACE = getRegisteredSoundEvent("block.cloth.place");
BLOCK_CLOTH_STEP = getRegisteredSoundEvent("block.cloth.step");
BLOCK_COMPARATOR_CLICK = getRegisteredSoundEvent("block.comparator.click");
ENTITY_COW_AMBIENT = getRegisteredSoundEvent("entity.cow.ambient");
ENTITY_COW_DEATH = getRegisteredSoundEvent("entity.cow.death");
ENTITY_COW_HURT = getRegisteredSoundEvent("entity.cow.hurt");
ENTITY_COW_MILK = getRegisteredSoundEvent("entity.cow.milk");
ENTITY_COW_STEP = getRegisteredSoundEvent("entity.cow.step");
ENTITY_CREEPER_DEATH = getRegisteredSoundEvent("entity.creeper.death");
ENTITY_CREEPER_HURT = getRegisteredSoundEvent("entity.creeper.hurt");
ENTITY_CREEPER_PRIMED = getRegisteredSoundEvent("entity.creeper.primed");
BLOCK_DISPENSER_DISPENSE = getRegisteredSoundEvent("block.dispenser.dispense");
BLOCK_DISPENSER_FAIL = getRegisteredSoundEvent("block.dispenser.fail");
BLOCK_DISPENSER_LAUNCH = getRegisteredSoundEvent("block.dispenser.launch");
ENTITY_DONKEY_AMBIENT = getRegisteredSoundEvent("entity.donkey.ambient");
ENTITY_DONKEY_ANGRY = getRegisteredSoundEvent("entity.donkey.angry");
ENTITY_DONKEY_CHEST = getRegisteredSoundEvent("entity.donkey.chest");
ENTITY_DONKEY_DEATH = getRegisteredSoundEvent("entity.donkey.death");
ENTITY_DONKEY_HURT = getRegisteredSoundEvent("entity.donkey.hurt");
ENTITY_EGG_THROW = getRegisteredSoundEvent("entity.egg.throw");
ENTITY_ELDER_GUARDIAN_AMBIENT = getRegisteredSoundEvent("entity.elder_guardian.ambient");
ENTITY_ELDERGUARDIAN_AMBIENTLAND = getRegisteredSoundEvent("entity.elder_guardian.ambient_land");
ENTITY_ELDER_GUARDIAN_CURSE = getRegisteredSoundEvent("entity.elder_guardian.curse");
ENTITY_ELDER_GUARDIAN_DEATH = getRegisteredSoundEvent("entity.elder_guardian.death");
ENTITY_ELDER_GUARDIAN_DEATH_LAND = getRegisteredSoundEvent("entity.elder_guardian.death_land");
ENTITY_ELDER_GUARDIAN_HURT = getRegisteredSoundEvent("entity.elder_guardian.hurt");
ENTITY_ELDER_GUARDIAN_HURT_LAND = getRegisteredSoundEvent("entity.elder_guardian.hurt_land");
field_189426_aK = getRegisteredSoundEvent("item.elytra.flying");
BLOCK_ENDERCHEST_CLOSE = getRegisteredSoundEvent("block.enderchest.close");
BLOCK_ENDERCHEST_OPEN = getRegisteredSoundEvent("block.enderchest.open");
ENTITY_ENDERDRAGON_AMBIENT = getRegisteredSoundEvent("entity.enderdragon.ambient");
ENTITY_ENDERDRAGON_DEATH = getRegisteredSoundEvent("entity.enderdragon.death");
ENTITY_ENDERDRAGON_FIREBALL_EPLD = getRegisteredSoundEvent("entity.enderdragon_fireball.explode");
ENTITY_ENDERDRAGON_FLAP = getRegisteredSoundEvent("entity.enderdragon.flap");
ENTITY_ENDERDRAGON_GROWL = getRegisteredSoundEvent("entity.enderdragon.growl");
ENTITY_ENDERDRAGON_HURT = getRegisteredSoundEvent("entity.enderdragon.hurt");
ENTITY_ENDERDRAGON_SHOOT = getRegisteredSoundEvent("entity.enderdragon.shoot");
ENTITY_ENDEREYE_LAUNCH = getRegisteredSoundEvent("entity.endereye.launch");
ENTITY_ENDERMEN_AMBIENT = getRegisteredSoundEvent("entity.endermen.ambient");
ENTITY_ENDERMEN_DEATH = getRegisteredSoundEvent("entity.endermen.death");
ENTITY_ENDERMEN_HURT = getRegisteredSoundEvent("entity.endermen.hurt");
ENTITY_ENDERMEN_SCREAM = getRegisteredSoundEvent("entity.endermen.scream");
ENTITY_ENDERMEN_STARE = getRegisteredSoundEvent("entity.endermen.stare");
ENTITY_ENDERMEN_TELEPORT = getRegisteredSoundEvent("entity.endermen.teleport");
ENTITY_ENDERMITE_AMBIENT = getRegisteredSoundEvent("entity.endermite.ambient");
ENTITY_ENDERMITE_DEATH = getRegisteredSoundEvent("entity.endermite.death");
ENTITY_ENDERMITE_HURT = getRegisteredSoundEvent("entity.endermite.hurt");
ENTITY_ENDERMITE_STEP = getRegisteredSoundEvent("entity.endermite.step");
ENTITY_ENDERPEARL_THROW = getRegisteredSoundEvent("entity.enderpearl.throw");
BLOCK_END_GATEWAY_SPAWN = getRegisteredSoundEvent("block.end_gateway.spawn");
ENTITY_EXPERIENCE_BOTTLE_THROW = getRegisteredSoundEvent("entity.experience_bottle.throw");
ENTITY_EXPERIENCE_ORB_PICKUP = getRegisteredSoundEvent("entity.experience_orb.pickup");
ENTITY_EXPERIENCE_ORB_TOUCH = getRegisteredSoundEvent("entity.experience_orb.touch");
BLOCK_FENCE_GATE_CLOSE = getRegisteredSoundEvent("block.fence_gate.close");
BLOCK_FENCE_GATE_OPEN = getRegisteredSoundEvent("block.fence_gate.open");
ITEM_FIRECHARGE_USE = getRegisteredSoundEvent("item.firecharge.use");
ENTITY_FIREWORK_BLAST = getRegisteredSoundEvent("entity.firework.blast");
ENTITY_FIREWORK_BLAST_FAR = getRegisteredSoundEvent("entity.firework.blast_far");
ENTITY_FIREWORK_LARGE_BLAST = getRegisteredSoundEvent("entity.firework.large_blast");
ENTITY_FIREWORK_LARGE_BLAST_FAR = getRegisteredSoundEvent("entity.firework.large_blast_far");
ENTITY_FIREWORK_LAUNCH = getRegisteredSoundEvent("entity.firework.launch");
ENTITY_FIREWORK_SHOOT = getRegisteredSoundEvent("entity.firework.shoot");
ENTITY_FIREWORK_TWINKLE = getRegisteredSoundEvent("entity.firework.twinkle");
ENTITY_FIREWORK_TWINKLE_FAR = getRegisteredSoundEvent("entity.firework.twinkle_far");
BLOCK_FIRE_AMBIENT = getRegisteredSoundEvent("block.fire.ambient");
BLOCK_FIRE_EXTINGUISH = getRegisteredSoundEvent("block.fire.extinguish");
ITEM_FLINTANDSTEEL_USE = getRegisteredSoundEvent("item.flintandsteel.use");
BLOCK_FURNACE_FIRE_CRACKLE = getRegisteredSoundEvent("block.furnace.fire_crackle");
ENTITY_GENERIC_BIG_FALL = getRegisteredSoundEvent("entity.generic.big_fall");
ENTITY_GENERIC_BURN = getRegisteredSoundEvent("entity.generic.burn");
ENTITY_GENERIC_DEATH = getRegisteredSoundEvent("entity.generic.death");
ENTITY_GENERIC_DRINK = getRegisteredSoundEvent("entity.generic.drink");
ENTITY_GENERIC_EAT = getRegisteredSoundEvent("entity.generic.eat");
ENTITY_GENERIC_EXPLODE = getRegisteredSoundEvent("entity.generic.explode");
ENTITY_GENERIC_EXTINGUISH_FIRE = getRegisteredSoundEvent("entity.generic.extinguish_fire");
ENTITY_GENERIC_HURT = getRegisteredSoundEvent("entity.generic.hurt");
ENTITY_GENERIC_SMALL_FALL = getRegisteredSoundEvent("entity.generic.small_fall");
ENTITY_GENERIC_SPLASH = getRegisteredSoundEvent("entity.generic.splash");
ENTITY_GENERIC_SWIM = getRegisteredSoundEvent("entity.generic.swim");
ENTITY_GHAST_AMBIENT = getRegisteredSoundEvent("entity.ghast.ambient");
ENTITY_GHAST_DEATH = getRegisteredSoundEvent("entity.ghast.death");
ENTITY_GHAST_HURT = getRegisteredSoundEvent("entity.ghast.hurt");
ENTITY_GHAST_SCREAM = getRegisteredSoundEvent("entity.ghast.scream");
ENTITY_GHAST_SHOOT = getRegisteredSoundEvent("entity.ghast.shoot");
ENTITY_GHAST_WARN = getRegisteredSoundEvent("entity.ghast.warn");
BLOCK_GLASS_BREAK = getRegisteredSoundEvent("block.glass.break");
BLOCK_GLASS_FALL = getRegisteredSoundEvent("block.glass.fall");
BLOCK_GLASS_HIT = getRegisteredSoundEvent("block.glass.hit");
BLOCK_GLASS_PLACE = getRegisteredSoundEvent("block.glass.place");
BLOCK_GLASS_STEP = getRegisteredSoundEvent("block.glass.step");
BLOCK_GRASS_BREAK = getRegisteredSoundEvent("block.grass.break");
BLOCK_GRASS_FALL = getRegisteredSoundEvent("block.grass.fall");
BLOCK_GRASS_HIT = getRegisteredSoundEvent("block.grass.hit");
BLOCK_GRASS_PLACE = getRegisteredSoundEvent("block.grass.place");
BLOCK_GRASS_STEP = getRegisteredSoundEvent("block.grass.step");
BLOCK_GRAVEL_BREAK = getRegisteredSoundEvent("block.gravel.break");
BLOCK_GRAVEL_FALL = getRegisteredSoundEvent("block.gravel.fall");
BLOCK_GRAVEL_HIT = getRegisteredSoundEvent("block.gravel.hit");
BLOCK_GRAVEL_PLACE = getRegisteredSoundEvent("block.gravel.place");
BLOCK_GRAVEL_STEP = getRegisteredSoundEvent("block.gravel.step");
ENTITY_GUARDIAN_AMBIENT = getRegisteredSoundEvent("entity.guardian.ambient");
ENTITY_GUARDIAN_AMBIENT_LAND = getRegisteredSoundEvent("entity.guardian.ambient_land");
ENTITY_GUARDIAN_ATTACK = getRegisteredSoundEvent("entity.guardian.attack");
ENTITY_GUARDIAN_DEATH = getRegisteredSoundEvent("entity.guardian.death");
ENTITY_GUARDIAN_DEATH_LAND = getRegisteredSoundEvent("entity.guardian.death_land");
ENTITY_GUARDIAN_FLOP = getRegisteredSoundEvent("entity.guardian.flop");
ENTITY_GUARDIAN_HURT = getRegisteredSoundEvent("entity.guardian.hurt");
ENTITY_GUARDIAN_HURT_LAND = getRegisteredSoundEvent("entity.guardian.hurt_land");
ITEM_HOE_TILL = getRegisteredSoundEvent("item.hoe.till");
ENTITY_HORSE_AMBIENT = getRegisteredSoundEvent("entity.horse.ambient");
ENTITY_HORSE_ANGRY = getRegisteredSoundEvent("entity.horse.angry");
ENTITY_HORSE_ARMOR = getRegisteredSoundEvent("entity.horse.armor");
ENTITY_HORSE_BREATHE = getRegisteredSoundEvent("entity.horse.breathe");
ENTITY_HORSE_DEATH = getRegisteredSoundEvent("entity.horse.death");
ENTITY_HORSE_EAT = getRegisteredSoundEvent("entity.horse.eat");
ENTITY_HORSE_GALLOP = getRegisteredSoundEvent("entity.horse.gallop");
ENTITY_HORSE_HURT = getRegisteredSoundEvent("entity.horse.hurt");
ENTITY_HORSE_JUMP = getRegisteredSoundEvent("entity.horse.jump");
ENTITY_HORSE_LAND = getRegisteredSoundEvent("entity.horse.land");
ENTITY_HORSE_SADDLE = getRegisteredSoundEvent("entity.horse.saddle");
ENTITY_HORSE_STEP = getRegisteredSoundEvent("entity.horse.step");
ENTITY_HORSE_STEP_WOOD = getRegisteredSoundEvent("entity.horse.step_wood");
ENTITY_HOSTILE_BIG_FALL = getRegisteredSoundEvent("entity.hostile.big_fall");
ENTITY_HOSTILE_DEATH = getRegisteredSoundEvent("entity.hostile.death");
ENTITY_HOSTILE_HURT = getRegisteredSoundEvent("entity.hostile.hurt");
ENTITY_HOSTILE_SMALL_FALL = getRegisteredSoundEvent("entity.hostile.small_fall");
ENTITY_HOSTILE_SPLASH = getRegisteredSoundEvent("entity.hostile.splash");
ENTITY_HOSTILE_SWIM = getRegisteredSoundEvent("entity.hostile.swim");
ENTITY_IRONGOLEM_ATTACK = getRegisteredSoundEvent("entity.irongolem.attack");
ENTITY_IRONGOLEM_DEATH = getRegisteredSoundEvent("entity.irongolem.death");
ENTITY_IRONGOLEM_HURT = getRegisteredSoundEvent("entity.irongolem.hurt");
ENTITY_IRONGOLEM_STEP = getRegisteredSoundEvent("entity.irongolem.step");
BLOCK_IRON_DOOR_CLOSE = getRegisteredSoundEvent("block.iron_door.close");
BLOCK_IRON_DOOR_OPEN = getRegisteredSoundEvent("block.iron_door.open");
BLOCK_IRON_TRAPDOOR_CLOSE = getRegisteredSoundEvent("block.iron_trapdoor.close");
BLOCK_IRON_TRAPDOOR_OPEN = getRegisteredSoundEvent("block.iron_trapdoor.open");
ENTITY_ITEMFRAME_ADD_ITEM = getRegisteredSoundEvent("entity.itemframe.add_item");
ENTITY_ITEMFRAME_BREAK = getRegisteredSoundEvent("entity.itemframe.break");
ENTITY_ITEMFRAME_PLACE = getRegisteredSoundEvent("entity.itemframe.place");
ENTITY_ITEMFRAME_REMOVE_ITEM = getRegisteredSoundEvent("entity.itemframe.remove_item");
ENTITY_ITEMFRAME_ROTATE_ITEM = getRegisteredSoundEvent("entity.itemframe.rotate_item");
ENTITY_ITEM_BREAK = getRegisteredSoundEvent("entity.item.break");
ENTITY_ITEM_PICKUP = getRegisteredSoundEvent("entity.item.pickup");
BLOCK_LADDER_BREAK = getRegisteredSoundEvent("block.ladder.break");
BLOCK_LADDER_FALL = getRegisteredSoundEvent("block.ladder.fall");
BLOCK_LADDER_HIT = getRegisteredSoundEvent("block.ladder.hit");
BLOCK_LADDER_PLACE = getRegisteredSoundEvent("block.ladder.place");
BLOCK_LADDER_STEP = getRegisteredSoundEvent("block.ladder.step");
BLOCK_LAVA_AMBIENT = getRegisteredSoundEvent("block.lava.ambient");
BLOCK_LAVA_EXTINGUISH = getRegisteredSoundEvent("block.lava.extinguish");
BLOCK_LAVA_POP = getRegisteredSoundEvent("block.lava.pop");
ENTITY_LEASHKNOT_BREAK = getRegisteredSoundEvent("entity.leashknot.break");
ENTITY_LEASHKNOT_PLACE = getRegisteredSoundEvent("entity.leashknot.place");
BLOCK_LEVER_CLICK = getRegisteredSoundEvent("block.lever.click");
ENTITY_LIGHTNING_IMPACT = getRegisteredSoundEvent("entity.lightning.impact");
ENTITY_LIGHTNING_THUNDER = getRegisteredSoundEvent("entity.lightning.thunder");
ENTITY_LINGERINGPOTION_THROW = getRegisteredSoundEvent("entity.lingeringpotion.throw");
ENTITY_MAGMACUBE_DEATH = getRegisteredSoundEvent("entity.magmacube.death");
ENTITY_MAGMACUBE_HURT = getRegisteredSoundEvent("entity.magmacube.hurt");
ENTITY_MAGMACUBE_JUMP = getRegisteredSoundEvent("entity.magmacube.jump");
ENTITY_MAGMACUBE_SQUISH = getRegisteredSoundEvent("entity.magmacube.squish");
BLOCK_METAL_BREAK = getRegisteredSoundEvent("block.metal.break");
BLOCK_METAL_FALL = getRegisteredSoundEvent("block.metal.fall");
BLOCK_METAL_HIT = getRegisteredSoundEvent("block.metal.hit");
BLOCK_METAL_PLACE = getRegisteredSoundEvent("block.metal.place");
BLOCK_METAL_PRESSPLATE_CLICK_OFF = getRegisteredSoundEvent("block.metal_pressureplate.click_off");
BLOCK_METAL_PRESSPLATE_CLICK_ON = getRegisteredSoundEvent("block.metal_pressureplate.click_on");
BLOCK_METAL_STEP = getRegisteredSoundEvent("block.metal.step");
ENTITY_MINECART_INSIDE = getRegisteredSoundEvent("entity.minecart.inside");
ENTITY_MINECART_RIDING = getRegisteredSoundEvent("entity.minecart.riding");
ENTITY_MOOSHROOM_SHEAR = getRegisteredSoundEvent("entity.mooshroom.shear");
ENTITY_MULE_AMBIENT = getRegisteredSoundEvent("entity.mule.ambient");
ENTITY_MULE_DEATH = getRegisteredSoundEvent("entity.mule.death");
ENTITY_MULE_HURT = getRegisteredSoundEvent("entity.mule.hurt");
MUSIC_CREATIVE = getRegisteredSoundEvent("music.creative");
MUSIC_CREDITS = getRegisteredSoundEvent("music.credits");
MUSIC_DRAGON = getRegisteredSoundEvent("music.dragon");
MUSIC_END = getRegisteredSoundEvent("music.end");
MUSIC_GAME = getRegisteredSoundEvent("music.game");
MUSIC_MENU = getRegisteredSoundEvent("music.menu");
MUSIC_NETHER = getRegisteredSoundEvent("music.nether");
BLOCK_NOTE_BASEDRUM = getRegisteredSoundEvent("block.note.basedrum");
BLOCK_NOTE_BASS = getRegisteredSoundEvent("block.note.bass");
BLOCK_NOTE_HARP = getRegisteredSoundEvent("block.note.harp");
BLOCK_NOTE_HAT = getRegisteredSoundEvent("block.note.hat");
BLOCK_NOTE_PLING = getRegisteredSoundEvent("block.note.pling");
BLOCK_NOTE_SNARE = getRegisteredSoundEvent("block.note.snare");
ENTITY_PAINTING_BREAK = getRegisteredSoundEvent("entity.painting.break");
ENTITY_PAINTING_PLACE = getRegisteredSoundEvent("entity.painting.place");
ENTITY_PIG_AMBIENT = getRegisteredSoundEvent("entity.pig.ambient");
ENTITY_PIG_DEATH = getRegisteredSoundEvent("entity.pig.death");
ENTITY_PIG_HURT = getRegisteredSoundEvent("entity.pig.hurt");
ENTITY_PIG_SADDLE = getRegisteredSoundEvent("entity.pig.saddle");
ENTITY_PIG_STEP = getRegisteredSoundEvent("entity.pig.step");
BLOCK_PISTON_CONTRACT = getRegisteredSoundEvent("block.piston.contract");
BLOCK_PISTON_EXTEND = getRegisteredSoundEvent("block.piston.extend");
ENTITY_PLAYER_ATTACK_CRIT = getRegisteredSoundEvent("entity.player.attack.crit");
ENTITY_PLAYER_ATTACK_KNOCKBACK = getRegisteredSoundEvent("entity.player.attack.knockback");
ENTITY_PLAYER_ATTACK_NODAMAGE = getRegisteredSoundEvent("entity.player.attack.nodamage");
ENTITY_PLAYER_ATTACK_STRONG = getRegisteredSoundEvent("entity.player.attack.strong");
ENTITY_PLAYER_ATTACK_SWEEP = getRegisteredSoundEvent("entity.player.attack.sweep");
ENTITY_PLAYER_ATTACK_WEAK = getRegisteredSoundEvent("entity.player.attack.weak");
ENTITY_PLAYER_BIG_FALL = getRegisteredSoundEvent("entity.player.big_fall");
ENTITY_PLAYER_BREATH = getRegisteredSoundEvent("entity.player.breath");
ENTITY_PLAYER_BURP = getRegisteredSoundEvent("entity.player.burp");
ENTITY_PLAYER_DEATH = getRegisteredSoundEvent("entity.player.death");
ENTITY_PLAYER_HURT = getRegisteredSoundEvent("entity.player.hurt");
ENTITY_PLAYER_LEVELUP = getRegisteredSoundEvent("entity.player.levelup");
ENTITY_PLAYER_SMALL_FALL = getRegisteredSoundEvent("entity.player.small_fall");
ENTITY_PLAYER_SPLASH = getRegisteredSoundEvent("entity.player.splash");
ENTITY_PLAYER_SWIM = getRegisteredSoundEvent("entity.player.swim");
BLOCK_PORTAL_AMBIENT = getRegisteredSoundEvent("block.portal.ambient");
BLOCK_PORTAL_TRAVEL = getRegisteredSoundEvent("block.portal.travel");
BLOCK_PORTAL_TRIGGER = getRegisteredSoundEvent("block.portal.trigger");
ENTITY_RABBIT_AMBIENT = getRegisteredSoundEvent("entity.rabbit.ambient");
ENTITY_RABBIT_ATTACK = getRegisteredSoundEvent("entity.rabbit.attack");
ENTITY_RABBIT_DEATH = getRegisteredSoundEvent("entity.rabbit.death");
ENTITY_RABBIT_HURT = getRegisteredSoundEvent("entity.rabbit.hurt");
ENTITY_RABBIT_JUMP = getRegisteredSoundEvent("entity.rabbit.jump");
RECORD_11 = getRegisteredSoundEvent("record.11");
RECORD_13 = getRegisteredSoundEvent("record.13");
RECORD_BLOCKS = getRegisteredSoundEvent("record.blocks");
RECORD_CAT = getRegisteredSoundEvent("record.cat");
RECORD_CHIRP = getRegisteredSoundEvent("record.chirp");
RECORD_FAR = getRegisteredSoundEvent("record.far");
RECORD_MALL = getRegisteredSoundEvent("record.mall");
RECORD_MELLOHI = getRegisteredSoundEvent("record.mellohi");
RECORD_STAL = getRegisteredSoundEvent("record.stal");
RECORD_STRAD = getRegisteredSoundEvent("record.strad");
RECORD_WAIT = getRegisteredSoundEvent("record.wait");
RECORD_WARD = getRegisteredSoundEvent("record.ward");
BLOCK_REDSTONE_TORCH_BURNOUT = getRegisteredSoundEvent("block.redstone_torch.burnout");
BLOCK_SAND_BREAK = getRegisteredSoundEvent("block.sand.break");
BLOCK_SAND_FALL = getRegisteredSoundEvent("block.sand.fall");
BLOCK_SAND_HIT = getRegisteredSoundEvent("block.sand.hit");
BLOCK_SAND_PLACE = getRegisteredSoundEvent("block.sand.place");
BLOCK_SAND_STEP = getRegisteredSoundEvent("block.sand.step");
ENTITY_SHEEP_AMBIENT = getRegisteredSoundEvent("entity.sheep.ambient");
ENTITY_SHEEP_DEATH = getRegisteredSoundEvent("entity.sheep.death");
ENTITY_SHEEP_HURT = getRegisteredSoundEvent("entity.sheep.hurt");
ENTITY_SHEEP_SHEAR = getRegisteredSoundEvent("entity.sheep.shear");
ENTITY_SHEEP_STEP = getRegisteredSoundEvent("entity.sheep.step");
ITEM_SHIELD_BLOCK = getRegisteredSoundEvent("item.shield.block");
ITEM_SHIELD_BREAK = getRegisteredSoundEvent("item.shield.break");
ITEM_SHOVEL_FLATTEN = getRegisteredSoundEvent("item.shovel.flatten");
ENTITY_SHULKER_AMBIENT = getRegisteredSoundEvent("entity.shulker.ambient");
ENTITY_SHULKER_BULLET_HIT = getRegisteredSoundEvent("entity.shulker_bullet.hit");
ENTITY_SHULKER_BULLET_HURT = getRegisteredSoundEvent("entity.shulker_bullet.hurt");
ENTITY_SHULKER_CLOSE = getRegisteredSoundEvent("entity.shulker.close");
ENTITY_SHULKER_DEATH = getRegisteredSoundEvent("entity.shulker.death");
ENTITY_SHULKER_HURT = getRegisteredSoundEvent("entity.shulker.hurt");
ENTITY_SHULKER_HURT_CLOSED = getRegisteredSoundEvent("entity.shulker.hurt_closed");
ENTITY_SHULKER_OPEN = getRegisteredSoundEvent("entity.shulker.open");
ENTITY_SHULKER_SHOOT = getRegisteredSoundEvent("entity.shulker.shoot");
ENTITY_SHULKER_TELEPORT = getRegisteredSoundEvent("entity.shulker.teleport");
ENTITY_SILVERFISH_AMBIENT = getRegisteredSoundEvent("entity.silverfish.ambient");
ENTITY_SILVERFISH_DEATH = getRegisteredSoundEvent("entity.silverfish.death");
ENTITY_SILVERFISH_HURT = getRegisteredSoundEvent("entity.silverfish.hurt");
ENTITY_SILVERFISH_STEP = getRegisteredSoundEvent("entity.silverfish.step");
ENTITY_SKELETON_AMBIENT = getRegisteredSoundEvent("entity.skeleton.ambient");
ENTITY_SKELETON_DEATH = getRegisteredSoundEvent("entity.skeleton.death");
ENTITY_SKELETON_HORSE_AMBIENT = getRegisteredSoundEvent("entity.skeleton_horse.ambient");
ENTITY_SKELETON_HORSE_DEATH = getRegisteredSoundEvent("entity.skeleton_horse.death");
ENTITY_SKELETON_HORSE_HURT = getRegisteredSoundEvent("entity.skeleton_horse.hurt");
ENTITY_SKELETON_HURT = getRegisteredSoundEvent("entity.skeleton.hurt");
ENTITY_SKELETON_SHOOT = getRegisteredSoundEvent("entity.skeleton.shoot");
ENTITY_SKELETON_STEP = getRegisteredSoundEvent("entity.skeleton.step");
ENTITY_SLIME_ATTACK = getRegisteredSoundEvent("entity.slime.attack");
BLOCK_SLIME_BREAK = getRegisteredSoundEvent("block.slime.break");
ENTITY_SLIME_DEATH = getRegisteredSoundEvent("entity.slime.death");
BLOCK_SLIME_FALL = getRegisteredSoundEvent("block.slime.fall");
BLOCK_SLIME_HIT = getRegisteredSoundEvent("block.slime.hit");
ENTITY_SLIME_HURT = getRegisteredSoundEvent("entity.slime.hurt");
ENTITY_SLIME_JUMP = getRegisteredSoundEvent("entity.slime.jump");
BLOCK_SLIME_PLACE = getRegisteredSoundEvent("block.slime.place");
ENTITY_SLIME_SQUISH = getRegisteredSoundEvent("entity.slime.squish");
BLOCK_SLIME_STEP = getRegisteredSoundEvent("block.slime.step");
ENTITY_SMALL_MAGMACUBE_DEATH = getRegisteredSoundEvent("entity.small_magmacube.death");
ENTITY_SMALL_MAGMACUBE_HURT = getRegisteredSoundEvent("entity.small_magmacube.hurt");
ENTITY_SMALL_MAGMACUBE_SQUISH = getRegisteredSoundEvent("entity.small_magmacube.squish");
ENTITY_SMALL_SLIME_DEATH = getRegisteredSoundEvent("entity.small_slime.death");
ENTITY_SMALL_SLIME_HURT = getRegisteredSoundEvent("entity.small_slime.hurt");
ENTITY_SMALL_SLIME_JUMP = getRegisteredSoundEvent("entity.small_slime.jump");
ENTITY_SMALL_SLIME_SQUISH = getRegisteredSoundEvent("entity.small_slime.squish");
ENTITY_SNOWBALL_THROW = getRegisteredSoundEvent("entity.snowball.throw");
ENTITY_SNOWMAN_AMBIENT = getRegisteredSoundEvent("entity.snowman.ambient");
ENTITY_SNOWMAN_DEATH = getRegisteredSoundEvent("entity.snowman.death");
ENTITY_SNOWMAN_HURT = getRegisteredSoundEvent("entity.snowman.hurt");
ENTITY_SNOWMAN_SHOOT = getRegisteredSoundEvent("entity.snowman.shoot");
BLOCK_SNOW_BREAK = getRegisteredSoundEvent("block.snow.break");
BLOCK_SNOW_FALL = getRegisteredSoundEvent("block.snow.fall");
BLOCK_SNOW_HIT = getRegisteredSoundEvent("block.snow.hit");
BLOCK_SNOW_PLACE = getRegisteredSoundEvent("block.snow.place");
BLOCK_SNOW_STEP = getRegisteredSoundEvent("block.snow.step");
ENTITY_SPIDER_AMBIENT = getRegisteredSoundEvent("entity.spider.ambient");
ENTITY_SPIDER_DEATH = getRegisteredSoundEvent("entity.spider.death");
ENTITY_SPIDER_HURT = getRegisteredSoundEvent("entity.spider.hurt");
ENTITY_SPIDER_STEP = getRegisteredSoundEvent("entity.spider.step");
ENTITY_SPLASH_POTION_BREAK = getRegisteredSoundEvent("entity.splash_potion.break");
ENTITY_SPLASH_POTION_THROW = getRegisteredSoundEvent("entity.splash_potion.throw");
ENTITY_SQUID_AMBIENT = getRegisteredSoundEvent("entity.squid.ambient");
ENTITY_SQUID_DEATH = getRegisteredSoundEvent("entity.squid.death");
ENTITY_SQUID_HURT = getRegisteredSoundEvent("entity.squid.hurt");
BLOCK_STONE_BREAK = getRegisteredSoundEvent("block.stone.break");
BLOCK_STONE_BUTTON_CLICK_OFF = getRegisteredSoundEvent("block.stone_button.click_off");
BLOCK_STONE_BUTTON_CLICK_ON = getRegisteredSoundEvent("block.stone_button.click_on");
BLOCK_STONE_FALL = getRegisteredSoundEvent("block.stone.fall");
BLOCK_STONE_HIT = getRegisteredSoundEvent("block.stone.hit");
BLOCK_STONE_PLACE = getRegisteredSoundEvent("block.stone.place");
BLOCK_STONE_PRESSPLATE_CLICK_OFF = getRegisteredSoundEvent("block.stone_pressureplate.click_off");
BLOCK_STONE_PRESSPLATE_CLICK_ON = getRegisteredSoundEvent("block.stone_pressureplate.click_on");
BLOCK_STONE_STEP = getRegisteredSoundEvent("block.stone.step");
ENCHANT_THORNS_HIT = getRegisteredSoundEvent("enchant.thorns.hit");
ENTITY_TNT_PRIMED = getRegisteredSoundEvent("entity.tnt.primed");
BLOCK_TRIPWIRE_ATTACH = getRegisteredSoundEvent("block.tripwire.attach");
BLOCK_TRIPWIRE_CLICK_OFF = getRegisteredSoundEvent("block.tripwire.click_off");
BLOCK_TRIPWIRE_CLICK_ON = getRegisteredSoundEvent("block.tripwire.click_on");
BLOCK_TRIPWIRE_DETACH = getRegisteredSoundEvent("block.tripwire.detach");
UI_BUTTON_CLICK = getRegisteredSoundEvent("ui.button.click");
ENTITY_VILLAGER_AMBIENT = getRegisteredSoundEvent("entity.villager.ambient");
ENTITY_VILLAGER_DEATH = getRegisteredSoundEvent("entity.villager.death");
ENTITY_VILLAGER_HURT = getRegisteredSoundEvent("entity.villager.hurt");
ENTITY_VILLAGER_NO = getRegisteredSoundEvent("entity.villager.no");
ENTITY_VILLAGER_TRADING = getRegisteredSoundEvent("entity.villager.trading");
ENTITY_VILLAGER_YES = getRegisteredSoundEvent("entity.villager.yes");
BLOCK_WATERLILY_PLACE = getRegisteredSoundEvent("block.waterlily.place");
BLOCK_WATER_AMBIENT = getRegisteredSoundEvent("block.water.ambient");
WEATHER_RAIN = getRegisteredSoundEvent("weather.rain");
WEATHER_RAIN_ABOVE = getRegisteredSoundEvent("weather.rain.above");
ENTITY_WITCH_AMBIENT = getRegisteredSoundEvent("entity.witch.ambient");
ENTITY_WITCH_DEATH = getRegisteredSoundEvent("entity.witch.death");
ENTITY_WITCH_DRINK = getRegisteredSoundEvent("entity.witch.drink");
ENTITY_WITCH_HURT = getRegisteredSoundEvent("entity.witch.hurt");
ENTITY_WITCH_THROW = getRegisteredSoundEvent("entity.witch.throw");
ENTITY_WITHER_AMBIENT = getRegisteredSoundEvent("entity.wither.ambient");
ENTITY_WITHER_BREAK_BLOCK = getRegisteredSoundEvent("entity.wither.break_block");
ENTITY_WITHER_DEATH = getRegisteredSoundEvent("entity.wither.death");
ENTITY_WITHER_HURT = getRegisteredSoundEvent("entity.wither.hurt");
ENTITY_WITHER_SHOOT = getRegisteredSoundEvent("entity.wither.shoot");
ENTITY_WITHER_SPAWN = getRegisteredSoundEvent("entity.wither.spawn");
ENTITY_WOLF_AMBIENT = getRegisteredSoundEvent("entity.wolf.ambient");
ENTITY_WOLF_DEATH = getRegisteredSoundEvent("entity.wolf.death");
ENTITY_WOLF_GROWL = getRegisteredSoundEvent("entity.wolf.growl");
ENTITY_WOLF_HOWL = getRegisteredSoundEvent("entity.wolf.howl");
ENTITY_WOLF_HURT = getRegisteredSoundEvent("entity.wolf.hurt");
ENTITY_WOLF_PANT = getRegisteredSoundEvent("entity.wolf.pant");
ENTITY_WOLF_SHAKE = getRegisteredSoundEvent("entity.wolf.shake");
ENTITY_WOLF_STEP = getRegisteredSoundEvent("entity.wolf.step");
ENTITY_WOLF_WHINE = getRegisteredSoundEvent("entity.wolf.whine");
BLOCK_WOODEN_DOOR_CLOSE = getRegisteredSoundEvent("block.wooden_door.close");
BLOCK_WOODEN_DOOR_OPEN = getRegisteredSoundEvent("block.wooden_door.open");
BLOCK_WOODEN_TRAPDOOR_CLOSE = getRegisteredSoundEvent("block.wooden_trapdoor.close");
BLOCK_WOODEN_TRAPDOOR_OPEN = getRegisteredSoundEvent("block.wooden_trapdoor.open");
BLOCK_WOOD_BREAK = getRegisteredSoundEvent("block.wood.break");
BLOCK_WOOD_BUTTON_CLICK_OFF = getRegisteredSoundEvent("block.wood_button.click_off");
BLOCK_WOOD_BUTTON_CLICK_ON = getRegisteredSoundEvent("block.wood_button.click_on");
BLOCK_WOOD_FALL = getRegisteredSoundEvent("block.wood.fall");
BLOCK_WOOD_HIT = getRegisteredSoundEvent("block.wood.hit");
BLOCK_WOOD_PLACE = getRegisteredSoundEvent("block.wood.place");
BLOCK_WOOD_PRESSPLATE_CLICK_OFF = getRegisteredSoundEvent("block.wood_pressureplate.click_off");
BLOCK_WOOD_PRESSPLATE_CLICK_ON = getRegisteredSoundEvent("block.wood_pressureplate.click_on");
BLOCK_WOOD_STEP = getRegisteredSoundEvent("block.wood.step");
ENTITY_ZOMBIE_AMBIENT = getRegisteredSoundEvent("entity.zombie.ambient");
ENTITY_ZOMBIE_ATTACK_DOOR_WOOD = getRegisteredSoundEvent("entity.zombie.attack_door_wood");
ENTITY_ZOMBIE_ATTACK_IRON_DOOR = getRegisteredSoundEvent("entity.zombie.attack_iron_door");
ENTITY_ZOMBIE_BREAK_DOOR_WOOD = getRegisteredSoundEvent("entity.zombie.break_door_wood");
ENTITY_ZOMBIE_DEATH = getRegisteredSoundEvent("entity.zombie.death");
ENTITY_ZOMBIE_HORSE_AMBIENT = getRegisteredSoundEvent("entity.zombie_horse.ambient");
ENTITY_ZOMBIE_HORSE_DEATH = getRegisteredSoundEvent("entity.zombie_horse.death");
ENTITY_ZOMBIE_HORSE_HURT = getRegisteredSoundEvent("entity.zombie_horse.hurt");
ENTITY_ZOMBIE_HURT = getRegisteredSoundEvent("entity.zombie.hurt");
ENTITY_ZOMBIE_INFECT = getRegisteredSoundEvent("entity.zombie.infect");
ENTITY_ZOMBIE_PIG_AMBIENT = getRegisteredSoundEvent("entity.zombie_pig.ambient");
ENTITY_ZOMBIE_PIG_ANGRY = getRegisteredSoundEvent("entity.zombie_pig.angry");
ENTITY_ZOMBIE_PIG_DEATH = getRegisteredSoundEvent("entity.zombie_pig.death");
ENTITY_ZOMBIE_PIG_HURT = getRegisteredSoundEvent("entity.zombie_pig.hurt");
ENTITY_ZOMBIE_STEP = getRegisteredSoundEvent("entity.zombie.step");
ENTITY_ZOMBIE_VILLAGER_AMBIENT = getRegisteredSoundEvent("entity.zombie_villager.ambient");
ENTITY_ZOMBIE_VILLAGER_CONVERTED = getRegisteredSoundEvent("entity.zombie_villager.converted");
ENTITY_ZOMBIE_VILLAGER_CURE = getRegisteredSoundEvent("entity.zombie_villager.cure");
ENTITY_ZOMBIE_VILLAGER_DEATH = getRegisteredSoundEvent("entity.zombie_villager.death");
ENTITY_ZOMBIE_VILLAGER_HURT = getRegisteredSoundEvent("entity.zombie_villager.hurt");
ENTITY_ZOMBIE_VILLAGER_STEP = getRegisteredSoundEvent("entity.zombie_villager.step");
}
}
}

View File

@ -111,13 +111,13 @@ public abstract class Container {
* returns a list if itemStacks, for each slot.
*/
public List<ItemStack> getInventory() {
ArrayList arraylist = Lists.newArrayList();
List<ItemStack> list = Lists.<ItemStack>newArrayList();
for (int i = 0; i < this.inventorySlots.size(); ++i) {
arraylist.add(((Slot) this.inventorySlots.get(i)).getStack());
list.add(((Slot) this.inventorySlots.get(i)).getStack());
}
return arraylist;
return list;
}
/**

View File

@ -196,16 +196,6 @@ public class ContainerPlayer extends Container {
return null;
}
if (itemstack1.stackSize == 0) {
slot.putStack((ItemStack) null);
} else {
slot.onSlotChanged();
}
if (itemstack1.stackSize == itemstack.stackSize) {
return null;
}
slot.onPickupFromSlot(entityplayer, itemstack1);
}

View File

@ -90,17 +90,15 @@ public class ItemBlock extends Item {
this.block.onBlockPlacedBy(world, blockpos, iblockstate1, entityplayer, itemstack);
}
// ! fix sounds
// world.playSoundEffect((double) ((float) blockpos.getX() + 0.5F),
// (double) ((float) blockpos.getY() + 0.5F), (double) ((float) blockpos.getZ()
// + 0.5F),
// this.block.stepSound.getPlaceSound(), (this.block.stepSound.getVolume() +
// 1.0F) / 2.0F,
// this.block.stepSound.getFrequency() * 0.8F);
if (world.isRemote) {
Minecraft.getMinecraft().getSoundHandler()
.playSound(new PositionedSoundRecord(new ResourceLocation(block.stepSound.getPlaceSound()),
(block.stepSound.getVolume() + 1.0F) / 2.0F, block.stepSound.getFrequency() * 0.8F,
(float) blockpos.getX() + 0.5F, (float) blockpos.getY() + 0.5F,
(float) blockpos.getZ() + 0.5F));
}
--itemstack.stackSize;
}

View File

@ -1,5 +1,6 @@
package net.minecraft.item;
import net.hoosiertransfer.EaglerItems;
import net.minecraft.block.Block;
import net.minecraft.block.BlockDirt;
import net.minecraft.block.material.Material;
@ -63,7 +64,7 @@ public class ItemHoe extends Item {
Block block = iblockstate.getBlock();
if (enumfacing != EnumFacing.DOWN
&& world.getBlockState(blockpos.up()).getBlock().getMaterial() == Material.air) {
if (block == Blocks.grass) {
if (block == Blocks.grass || block == EaglerItems.getEaglerBlock("grass_path")) {
return this.useHoe(itemstack, entityplayer, world, blockpos, Blocks.farmland.getDefaultState());
}

View File

@ -4,8 +4,18 @@ import java.util.Set;
import com.google.common.collect.Sets;
import net.hoosiertransfer.EaglerItems;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.audio.SoundCategory;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.init.SoundEvents;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand;
import net.minecraft.world.World;
/**
* +
@ -41,7 +51,8 @@ public class ItemSpade extends ItemTool {
public static void bootstrap() {
EFFECTIVE_ON = Sets.newHashSet(new Block[] { Blocks.clay, Blocks.dirt, Blocks.farmland, Blocks.grass,
Blocks.gravel, Blocks.mycelium, Blocks.sand, Blocks.snow, Blocks.snow_layer, Blocks.soul_sand });
Blocks.gravel, Blocks.mycelium, Blocks.sand, Blocks.snow, Blocks.snow_layer, Blocks.soul_sand,
EaglerItems.getEaglerBlock("grass_path") });
}
public ItemSpade(Item.ToolMaterial material) {
@ -55,4 +66,30 @@ public class ItemSpade extends ItemTool {
public boolean canHarvestBlock(Block block) {
return block == Blocks.snow_layer ? true : block == Blocks.snow;
}
public boolean onItemUse(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumFacing facing,
float hitX, float hitY, float hitZ) {
if (!playerIn.canPlayerEdit(pos.offset(facing), facing, stack)) {
return false;
} else {
IBlockState iblockstate = worldIn.getBlockState(pos);
Block block = iblockstate.getBlock();
if (facing != EnumFacing.DOWN && worldIn.getBlockState(pos.up()).getBlock().getMaterial() == Material.air
&& block == Blocks.grass) {
IBlockState iblockstate1 = EaglerItems.getEaglerBlock("grass_path").getDefaultState();
worldIn.playSound(playerIn, pos, "item.shovel.flatten", SoundCategory.BLOCKS, 1.0F,
1.0F);
if (!worldIn.isRemote) {
worldIn.setBlockState(pos, iblockstate1, 11);
stack.damageItem(1, playerIn);
}
return true;
} else {
return false;
}
}
}
}

View File

@ -1,41 +1,12 @@
package net.minecraft.network.play.server;
import java.io.IOException;
import javax.annotation.Nullable;
import net.minecraft.item.ItemStack;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.INetHandlerPlayClient;
/**
* +
* This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code.
*
* Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!"
* Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team
*
* EaglercraftX 1.8 patch files (c) 2022-2024 lax1dude, hoosiertransfer,
* ayunami2000. All Rights Reserved.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED.
* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
*/
public class S2FPacketSetSlot implements Packet<INetHandlerPlayClient> {
private int windowId;
private int slot;
@ -44,49 +15,47 @@ public class S2FPacketSetSlot implements Packet<INetHandlerPlayClient> {
public S2FPacketSetSlot() {
}
public S2FPacketSetSlot(int windowIdIn, int slotIn, ItemStack itemIn) {
public S2FPacketSetSlot(int windowIdIn, int slotIn, @Nullable ItemStack itemIn) {
this.windowId = windowIdIn;
this.slot = slotIn;
this.item = itemIn == null ? null : itemIn.copy();
}
/**
* +
* Passes this Packet on to the NetHandler for processing.
*/
public void processPacket(INetHandlerPlayClient inethandlerplayclient) {
inethandlerplayclient.handleSetSlot(this);
public void processPacket(INetHandlerPlayClient handler) {
handler.handleSetSlot(this);
}
/**
* +
* Reads the raw packet data from the data stream.
*/
public void readPacketData(PacketBuffer parPacketBuffer) throws IOException {
this.windowId = parPacketBuffer.readByte();
this.slot = parPacketBuffer.readShort();
this.item = parPacketBuffer.readItemStackFromBuffer();
public void readPacketData(PacketBuffer buf) throws IOException {
this.windowId = buf.readByte();
this.slot = buf.readShort();
this.item = buf.readItemStackFromBuffer();
}
/**
* +
* Writes the raw packet data to the data stream.
*/
public void writePacketData(PacketBuffer parPacketBuffer) throws IOException {
parPacketBuffer.writeByte(this.windowId);
parPacketBuffer.writeShort(this.slot);
parPacketBuffer.writeItemStackToBuffer(this.item);
public void writePacketData(PacketBuffer buf) throws IOException {
buf.writeByte(this.windowId);
buf.writeShort(this.slot);
buf.writeItemStackToBuffer(this.item);
}
public int func_149175_c() {
public int getWindowId() {
return this.windowId;
}
public int func_149173_d() {
public int getSlot() {
return this.slot;
}
public ItemStack func_149174_e() {
@Nullable
public ItemStack getStack() {
return this.item;
}
}

View File

@ -2,41 +2,11 @@ package net.minecraft.network.play.server;
import java.io.IOException;
import java.util.List;
import net.minecraft.item.ItemStack;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.INetHandlerPlayClient;
/**
* +
* This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code.
*
* Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!"
* Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team
*
* EaglercraftX 1.8 patch files (c) 2022-2024 lax1dude, hoosiertransfer,
* ayunami2000. All Rights Reserved.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED.
* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
*/
public class S30PacketWindowItems implements Packet<INetHandlerPlayClient> {
private int windowId;
private ItemStack[] itemStacks;
@ -44,55 +14,49 @@ public class S30PacketWindowItems implements Packet<INetHandlerPlayClient> {
public S30PacketWindowItems() {
}
public S30PacketWindowItems(int windowIdIn, List<ItemStack> parList) {
public S30PacketWindowItems(int windowIdIn, List<ItemStack> stacks) {
this.windowId = windowIdIn;
this.itemStacks = new ItemStack[parList.size()];
this.itemStacks = new ItemStack[stacks.size()];
for (int i = 0; i < this.itemStacks.length; ++i) {
ItemStack itemstack = (ItemStack) parList.get(i);
ItemStack itemstack = (ItemStack) stacks.get(i);
this.itemStacks[i] = itemstack == null ? null : itemstack.copy();
}
}
/**
* +
* Reads the raw packet data from the data stream.
*/
public void readPacketData(PacketBuffer parPacketBuffer) throws IOException {
this.windowId = parPacketBuffer.readUnsignedByte();
short short1 = parPacketBuffer.readShort();
this.itemStacks = new ItemStack[short1];
public void readPacketData(PacketBuffer buf) throws IOException {
this.windowId = buf.readUnsignedByte();
int i = buf.readShort();
this.itemStacks = new ItemStack[i];
for (int i = 0; i < short1; ++i) {
this.itemStacks[i] = parPacketBuffer.readItemStackFromBuffer();
for (int j = 0; j < i; ++j) {
this.itemStacks[j] = buf.readItemStackFromBuffer();
}
}
/**
* +
* Writes the raw packet data to the data stream.
*/
public void writePacketData(PacketBuffer parPacketBuffer) throws IOException {
parPacketBuffer.writeByte(this.windowId);
parPacketBuffer.writeShort(this.itemStacks.length);
public void writePacketData(PacketBuffer buf) throws IOException {
buf.writeByte(this.windowId);
buf.writeShort(this.itemStacks.length);
for (int i = 0; i < this.itemStacks.length; ++i) {
parPacketBuffer.writeItemStackToBuffer(this.itemStacks[i]);
for (ItemStack itemstack : this.itemStacks) {
buf.writeItemStackToBuffer(itemstack);
}
}
/**
* +
* Passes this Packet on to the NetHandler for processing.
*/
public void processPacket(INetHandlerPlayClient inethandlerplayclient) {
inethandlerplayclient.handleWindowItems(this);
public void processPacket(INetHandlerPlayClient handler) {
handler.handleWindowItems(this);
}
public int func_148911_c() {
public int getWindowId() {
return this.windowId;
}

View File

@ -23,6 +23,8 @@ import net.lax1dude.eaglercraft.v1_8.HString;
import java.util.concurrent.Callable;
import javax.annotation.Nullable;
import net.minecraft.block.Block;
import net.minecraft.block.BlockHopper;
import net.minecraft.block.BlockLiquid;
@ -31,6 +33,7 @@ import net.minecraft.block.BlockSnow;
import net.minecraft.block.BlockStairs;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.audio.SoundCategory;
import net.minecraft.crash.CrashReport;
import net.minecraft.crash.CrashReportCategory;
import net.minecraft.entity.Entity;
@ -53,6 +56,7 @@ import net.minecraft.util.IntHashMap;
import net.minecraft.util.MathHelper;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.util.ReportedException;
import net.minecraft.util.SoundEvent;
import net.minecraft.util.Vec3;
import net.minecraft.village.VillageCollection;
import net.minecraft.world.biome.BiomeGenBase;
@ -851,6 +855,20 @@ public abstract class World implements IBlockAccess, ILightingEngineProvider, IL
}
public void playSound(@Nullable EntityPlayer player, double x, double y, double z, String soundIn, float volume,
float pitch) {
for (int i = 0; i < this.worldAccesses.size(); ++i) {
((IWorldAccess) this.worldAccesses.get(i)).playSoundToNearExcept(player, soundIn, x, y,
z, volume, pitch);
}
}
public void playSound(@Nullable EntityPlayer player, BlockPos pos, String soundIn, SoundCategory category,
float volume, float pitch) {
this.playSound(player, (double) pos.getX() + 0.5D, (double) pos.getY() + 0.5D, (double) pos.getZ() + 0.5D,
soundIn, volume, pitch);
}
/**
* +
* Plays sound to all near players except the player reference
@ -888,6 +906,22 @@ public abstract class World implements IBlockAccess, ILightingEngineProvider, IL
boolean distanceDelay) {
}
public void playSound(double x, double y, double z, SoundEvent soundName, SoundCategory category, float volume,
float pitch,
boolean distanceDelay) {
this.playSound(x, y, z, soundName.getSoundName().getResourcePath(), volume, pitch, distanceDelay);
}
public void playSoundAtEntity(Entity entityIn, BlockPos pos, SoundEvent soundName, SoundCategory category,
float volume,
float pitch) {
for (int i = 0; i < this.worldAccesses.size(); ++i) {
((IWorldAccess) this.worldAccesses.get(i)).playSound(soundName.getSoundName().getResourcePath(),
pos.getX(), pos.getY(), pos.getZ(), volume, pitch);
}
}
public void playRecord(BlockPos pos, String name) {
for (int i = 0; i < this.worldAccesses.size(); ++i) {
((IWorldAccess) this.worldAccesses.get(i)).playRecord(name, pos);