u23 + drawstringwithshadow()

This commit is contained in:
radmanplays 2024-02-20 09:58:56 +03:30
parent f3e6b35124
commit a192c8ff64
1473 changed files with 4503 additions and 14830 deletions

2
.gitignore vendored
View File

@ -7,5 +7,5 @@ MinecraftSrc.zip
!/mcp918/readme.txt
!/mcp918/assetsIndexTransformer.json
/rundir/*
/##TEAVM.TMP##/*
/Eaglerforge-Workspace/
/##TEAVM.TMP##/*

Binary file not shown.

View File

@ -182,9 +182,6 @@ public class DecompileMinecraft {
ZipEntry z2 = new ZipEntry(nm);
jarOut.putNextEntry(z2);
IOUtils.write(txt, jarOut, "UTF-8");
z2 = new ZipEntry("net/lax1dude/eaglercraft/v1_8/sp/server/classes/" + nm);
jarOut.putNextEntry(z2);
ApplyPatchesToZip.writeIntegratedServerClass(nm.substring(0, nm.length() - 5), txt, jarOut);
++xt;
if(xt % 75 == 74) {
System.out.print(".");

View File

@ -1 +1 @@
u22
u23

File diff suppressed because it is too large Load Diff

View File

@ -1,99 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 3 : 4 @ 3 : 4
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 492 : 493 @ 492 : 493
~ public void randomTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random) {
> CHANGE 3 : 4 @ 3 : 4
~ public void updateTick(World var1, BlockPos var2, IBlockState var3, EaglercraftRandom var4) {
> CHANGE 2 : 3 @ 2 : 3
~ public void randomDisplayTick(World worldIn, BlockPos pos, IBlockState state, EaglercraftRandom rand) {
> CHANGE 18 : 19 @ 18 : 19
~ public int quantityDropped(EaglercraftRandom random) {
> CHANGE 3 : 4 @ 3 : 4
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> CHANGE 15 : 16 @ 15 : 16
~ {
> DELETE 10 @ 10 : 11
> CHANGE 4 : 5 @ 4 : 5
~ if (worldIn.getGameRules().getBoolean("doTileDrops")) {
> CHANGE 12 : 13 @ 12 : 13
~ {
> DELETE 7 @ 7 : 8
> CHANGE 251 : 252 @ 251 : 252
~ public int quantityDroppedWithBonus(int fortune, EaglercraftRandom random) {
> INSERT 136 : 137 @ 136
+ bootstrapStates();
> INSERT 468 : 508 @ 468
+ public static void bootstrapStates() {
+ BlockBed.bootstrapStates();
+ BlockDirt.bootstrapStates();
+ BlockDoor.bootstrapStates();
+ BlockDoublePlant.bootstrapStates();
+ BlockFlowerPot.bootstrapStates();
+ BlockHugeMushroom.bootstrapStates();
+ BlockLever.bootstrapStates();
+ BlockLog.bootstrapStates();
+ BlockNewLeaf.bootstrapStates();
+ BlockNewLog.bootstrapStates();
+ BlockOldLeaf.bootstrapStates();
+ BlockOldLog.bootstrapStates();
+ BlockPistonExtension.bootstrapStates();
+ BlockPistonMoving.bootstrapStates();
+ BlockPlanks.bootstrapStates();
+ BlockPrismarine.bootstrapStates();
+ BlockQuartz.bootstrapStates();
+ BlockRail.bootstrapStates();
+ BlockRailDetector.bootstrapStates();
+ BlockRailPowered.bootstrapStates();
+ BlockRedSandstone.bootstrapStates();
+ BlockRedstoneComparator.bootstrapStates();
+ BlockRedstoneWire.bootstrapStates();
+ BlockSand.bootstrapStates();
+ BlockSandStone.bootstrapStates();
+ BlockSapling.bootstrapStates();
+ BlockSilverfish.bootstrapStates();
+ BlockSlab.bootstrapStates();
+ BlockStairs.bootstrapStates();
+ BlockStone.bootstrapStates();
+ BlockStoneBrick.bootstrapStates();
+ BlockStoneSlab.bootstrapStates();
+ BlockStoneSlabNew.bootstrapStates();
+ BlockTallGrass.bootstrapStates();
+ BlockTrapDoor.bootstrapStates();
+ BlockWall.bootstrapStates();
+ BlockWoodSlab.bootstrapStates();
+ }
+
> EOF

View File

@ -1,14 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 64 : 65 @ 64 : 65
~ {
> DELETE 2 @ 2 : 3
> EOF

View File

@ -1,20 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 12 : 13 @ 12 : 13
~ import net.minecraft.nbt.NBTTagCompound;
> CHANGE 60 : 61 @ 60 : 61
~ public Item getItemDropped(IBlockState state, EaglercraftRandom rand, int fortune) {
> EOF

View File

@ -1,29 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 87 : 88 @ 87 : 88
~ public void randomTick(World worldIn, BlockPos pos, IBlockState state, EaglercraftRandom random) {
> CHANGE 2 : 4 @ 2 : 4
~ public void updateTick(World worldIn, BlockPos pos, IBlockState state, EaglercraftRandom rand) {
~ {
> DELETE 4 @ 4 : 5
> CHANGE 4 : 5 @ 4 : 5
~ {
> DELETE 4 @ 4 : 5
> EOF

View File

@ -1,52 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> DELETE 18 @ 18 : 19
> CHANGE 24 : 25 @ 24 : 27
~ {
> DELETE 5 @ 5 : 7
> INSERT 1 : 2 @ 1
+ return true;
> CHANGE 40 : 41 @ 40 : 43
~ Chunk chunk = worldIn.getChunkFromBlockCoords(glassPos);
> CHANGE 1 : 6 @ 1 : 6
~ for (int i = glassPos.getY() - 1; i >= 0; --i) {
~ final BlockPos blockpos = new BlockPos(glassPos.getX(), i, glassPos.getZ());
~ if (!chunk.canSeeSky(blockpos)) {
~ break;
~ }
> CHANGE 1 : 10 @ 1 : 13
~ IBlockState iblockstate = worldIn.getBlockState(blockpos);
~ if (iblockstate.getBlock() == Blocks.beacon) {
~ ((WorldServer) worldIn).addScheduledTask(new Runnable() {
~ public void run() {
~ TileEntity tileentity = worldIn.getTileEntity(blockpos);
~ if (tileentity instanceof TileEntityBeacon) {
~ ((TileEntityBeacon) tileentity).updateBeacon();
~ worldIn.addBlockEvent(blockpos, Blocks.beacon, 1, 0);
~ }
> CHANGE 1 : 2 @ 1 : 3
~ });
> CHANGE 1 : 2 @ 1 : 2
~ }
> EOF

View File

@ -1,110 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> INSERT 12 : 13 @ 12
+ import net.lax1dude.eaglercraft.v1_8.sp.server.classes.net.minecraft.server.MinecraftServer;
> CHANGE 17 : 18 @ 17 : 19
~ public static PropertyEnum<BlockBed.EnumPartType> PART;
> INSERT 2 : 6 @ 2
+ public static void bootstrapStates() {
+ PART = PropertyEnum.<BlockBed.EnumPartType>create("part", BlockBed.EnumPartType.class);
+ }
+
> CHANGE 9 : 10 @ 9 : 12
~ {
> INSERT 7 : 8 @ 7
+ }
> CHANGE 1 : 9 @ 1 : 12
~ if (world.provider.canRespawnHere() && world.getBiomeGenForCoords(blockpos) != BiomeGenBase.hell) {
~ if (MinecraftServer.getServer().worldServers[0].getWorldInfo().getGameRulesInstance()
~ .getBoolean("bedSpawnPoint") && Math.abs(entityplayer.posX - (double) blockpos.getX()) <= 3.0D
~ && Math.abs(entityplayer.posY - (double) blockpos.getY()) <= 2.0D
~ && Math.abs(entityplayer.posZ - (double) blockpos.getZ()) <= 3.0D) {
~ BlockPos blockpos1 = BlockBed.getSafeExitLocation(world, blockpos, 0);
~ if (blockpos1 == null) {
~ blockpos1 = blockpos.up();
> CHANGE 1 : 4 @ 1 : 6
~ entityplayer.setSpawnPoint(blockpos1.add(0.5F, 0.1F, 0.5F), false);
~ entityplayer.addChatComponentMessage(new ChatComponentTranslation("tile.bed.setspawn"));
~ if (entityplayer.isSneaking()) {
> CHANGE 1 : 3 @ 1 : 9
~ }
~ }
> INSERT 1 : 6 @ 1
+ if (((Boolean) iblockstate.getValue(OCCUPIED)).booleanValue()) {
+ EntityPlayer entityplayer1 = this.getPlayerInBed(world, blockpos);
+ if (entityplayer1 != null) {
+ entityplayer
+ .addChatComponentMessage(new ChatComponentTranslation("tile.bed.occupied", new Object[0]));
> INSERT 2 : 12 @ 2
+
+ iblockstate = iblockstate.withProperty(OCCUPIED, Boolean.valueOf(false));
+ world.setBlockState(blockpos, iblockstate, 4);
+ }
+
+ EntityPlayer.EnumStatus entityplayer$enumstatus = entityplayer.trySleep(blockpos);
+ if (entityplayer$enumstatus == EntityPlayer.EnumStatus.OK) {
+ iblockstate = iblockstate.withProperty(OCCUPIED, Boolean.valueOf(true));
+ world.setBlockState(blockpos, iblockstate, 4);
+ return true;
> CHANGE 1 : 7 @ 1 : 5
~ if (entityplayer$enumstatus == EntityPlayer.EnumStatus.NOT_POSSIBLE_NOW) {
~ entityplayer
~ .addChatComponentMessage(new ChatComponentTranslation("tile.bed.noSleep", new Object[0]));
~ } else if (entityplayer$enumstatus == EntityPlayer.EnumStatus.NOT_SAFE) {
~ entityplayer
~ .addChatComponentMessage(new ChatComponentTranslation("tile.bed.notSafe", new Object[0]));
> DELETE 2 @ 2 : 4
> INSERT 2 : 12 @ 2
+ } else {
+ world.setBlockToAir(blockpos);
+ BlockPos blockpos1 = blockpos.offset(((EnumFacing) iblockstate.getValue(FACING)).getOpposite());
+ if (world.getBlockState(blockpos1).getBlock() == this) {
+ world.setBlockToAir(blockpos1);
+ }
+
+ world.newExplosion((Entity) null, (double) blockpos.getX() + 0.5D, (double) blockpos.getY() + 0.5D,
+ (double) blockpos.getZ() + 0.5D, 5.0F, true, true);
+ return true;
> CHANGE 33 : 34 @ 33 : 34
~ {
> CHANGE 6 : 7 @ 6 : 7
~ public Item getItemDropped(IBlockState iblockstate, EaglercraftRandom var2, int var3) {
> EOF

View File

@ -1,20 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 20 : 21 @ 20 : 21
~ public int quantityDropped(EaglercraftRandom var1) {
> CHANGE 3 : 4 @ 3 : 4
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> EOF

View File

@ -1,30 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 3 : 4 @ 3 : 4
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 77 : 78 @ 77 : 80
~ {
> DELETE 5 @ 5 : 7
> INSERT 1 : 2 @ 1
+ return true;
> CHANGE 13 : 14 @ 13 : 14
~ public void randomDisplayTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom random) {
> CHANGE 15 : 16 @ 15 : 16
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> EOF

View File

@ -1,16 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 49 : 50 @ 49 : 50
~ public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom var4) {
> EOF

View File

@ -1,27 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 3 : 4 @ 3 : 4
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 172 : 173 @ 172 : 173
~ public void randomTick(World var1, BlockPos var2, IBlockState var3, EaglercraftRandom var4) {
> CHANGE 2 : 4 @ 2 : 4
~ public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom var4) {
~ {
> DELETE 10 @ 10 : 11
> CHANGE 12 : 13 @ 12 : 13
~ {
> EOF

View File

@ -1,16 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 33 : 34 @ 33 : 34
~ public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom var4) {
> EOF

View File

@ -1,20 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 107 : 108 @ 107 : 108
~ public int quantityDropped(EaglercraftRandom var1) {
> CHANGE 3 : 4 @ 3 : 4
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> EOF

View File

@ -1,34 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> INSERT 11 : 13 @ 11
+ import net.lax1dude.eaglercraft.v1_8.sp.server.classes.net.minecraft.entity.player.EntityPlayer;
+ import net.lax1dude.eaglercraft.v1_8.sp.server.classes.net.minecraft.entity.projectile.EntityArrow;
> INSERT 3 : 4 @ 3
+ import net.lax1dude.eaglercraft.v1_8.sp.server.classes.net.minecraft.server.MinecraftServer;
> INSERT 99 : 113 @ 99
+
+ public boolean onBlockActivated(World world, BlockPos blockpos, IBlockState var3, EntityPlayer entityplayer,
+ EnumFacing var5, float var6, float var7, float var8) {
+ if (MinecraftServer.getServer().worldServers[0].getWorldInfo().getGameRulesInstance().getBoolean("clickToSit")
+ && entityplayer.getHeldItem() == null) {
+ EntityArrow arrow = new EntityArrow(world, blockpos.getX() + 0.5D, blockpos.getY() - 0.4375D,
+ blockpos.getZ() + 0.5D);
+ arrow.isChair = true;
+ world.spawnEntityInWorld(arrow);
+ entityplayer.mountEntity(arrow);
+ return true;
+ }
+ return super.onBlockActivated(world, blockpos, var3, entityplayer, var5, var6, var7, var8);
+ }
> EOF

View File

@ -1,24 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 3 : 4 @ 3 : 4
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 70 : 71 @ 70 : 71
~ if (entity.isBurning() && i > 0 && entity.getEntityBoundingBox().minY <= (double) f) {
> CHANGE 8 : 9 @ 8 : 11
~ {
> CHANGE 102 : 103 @ 102 : 103
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> EOF

View File

@ -1,16 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 141 : 142 @ 141 : 144
~ {
> CHANGE 186 : 187 @ 186 : 189
~ {
> EOF

View File

@ -1,20 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 20 : 21 @ 20 : 21
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> CHANGE 3 : 4 @ 3 : 4
~ public int quantityDropped(EaglercraftRandom var1) {
> EOF

View File

@ -1,24 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 39 : 40 @ 39 : 40
~ public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom var4) {
> CHANGE 117 : 118 @ 117 : 118
~ public boolean canUseBonemeal(World var1, EaglercraftRandom var2, BlockPos var3, IBlockState var4) {
> CHANGE 3 : 4 @ 3 : 4
~ public void grow(World world, EaglercraftRandom var2, BlockPos blockpos, IBlockState iblockstate) {
> EOF

View File

@ -1,32 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 38 : 39 @ 38 : 39
~ {
> DELETE 9 @ 9 : 10
> CHANGE 2 : 3 @ 2 : 3
~ public void updateTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom var4) {
> CHANGE 40 : 41 @ 40 : 41
~ {
> DELETE 2 @ 2 : 3
> CHANGE 3 : 4 @ 3 : 4
~ public int quantityDropped(EaglercraftRandom var1) {
> EOF

View File

@ -1,34 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 42 : 43 @ 42 : 43
~ public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random) {
> CHANGE 83 : 84 @ 83 : 84
~ {
> DELETE 10 @ 10 : 11
> CHANGE 3 : 4 @ 3 : 4
~ public Item getItemDropped(IBlockState iblockstate, EaglercraftRandom var2, int var3) {
> CHANGE 11 : 12 @ 11 : 12
~ public boolean canUseBonemeal(World var1, EaglercraftRandom var2, BlockPos var3, IBlockState var4) {
> CHANGE 3 : 4 @ 3 : 4
~ public void grow(World world, EaglercraftRandom var2, BlockPos blockpos, IBlockState iblockstate) {
> EOF

View File

@ -1,20 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 3 : 4 @ 3 : 4
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 73 : 74 @ 73 : 76
~ {
> CHANGE 18 : 19 @ 18 : 19
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> EOF

View File

@ -1,20 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 42 : 43 @ 42 : 43
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> CHANGE 5 : 6 @ 5 : 6
~ if (entityplayer.getCurrentEquippedItem() != null
> EOF

View File

@ -1,19 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 28 : 29 @ 28 : 30
~ public static PropertyEnum<BlockDirt.DirtType> VARIANT;
> INSERT 9 : 13 @ 9
+ public static void bootstrapStates() {
+ VARIANT = PropertyEnum.<BlockDirt.DirtType>create("variant", BlockDirt.DirtType.class);
+ }
+
> EOF

View File

@ -1,31 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 43 : 44 @ 43 : 44
~ protected EaglercraftRandom rand = new EaglercraftRandom();
> CHANGE 18 : 19 @ 18 : 19
~ {
> CHANGE 24 : 25 @ 24 : 27
~ {
> CHANGE 49 : 51 @ 49 : 51
~ public void updateTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom var4) {
~ {
> DELETE 2 @ 2 : 3
> EOF

View File

@ -1,36 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 33 : 34 @ 33 : 35
~ public static PropertyEnum<BlockDoor.EnumHingePosition> HINGE;
> CHANGE 1 : 2 @ 1 : 3
~ public static PropertyEnum<BlockDoor.EnumDoorHalf> HALF;
> INSERT 8 : 13 @ 8
+ public static void bootstrapStates() {
+ HINGE = PropertyEnum.<BlockDoor.EnumHingePosition>create("hinge", BlockDoor.EnumHingePosition.class);
+ HALF = PropertyEnum.<BlockDoor.EnumDoorHalf>create("half", BlockDoor.EnumDoorHalf.class);
+ }
+
> CHANGE 136 : 137 @ 136 : 137
~ {
> CHANGE 18 : 19 @ 18 : 19
~ public Item getItemDropped(IBlockState iblockstate, EaglercraftRandom var2, int var3) {
> EOF

View File

@ -1,47 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 3 : 4 @ 3 : 4
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 34 : 36 @ 34 : 38
~ public static PropertyEnum<BlockDoublePlant.EnumPlantType> VARIANT;
~ public static PropertyEnum<BlockDoublePlant.EnumBlockHalf> HALF;
> INSERT 13 : 18 @ 13
+ public static void bootstrapStates() {
+ VARIANT = PropertyEnum.<BlockDoublePlant.EnumPlantType>create("variant", BlockDoublePlant.EnumPlantType.class);
+ HALF = PropertyEnum.<BlockDoublePlant.EnumBlockHalf>create("half", BlockDoublePlant.EnumBlockHalf.class);
+ }
+
> CHANGE 60 : 61 @ 60 : 61
~ public Item getItemDropped(IBlockState iblockstate, EaglercraftRandom random, int var3) {
> CHANGE 41 : 42 @ 41 : 42
~ if (entityplayer.getCurrentEquippedItem() == null
> CHANGE 17 : 18 @ 17 : 18
~ } else {
> DELETE 7 @ 7 : 9
> CHANGE 45 : 46 @ 45 : 46
~ public boolean canUseBonemeal(World var1, EaglercraftRandom var2, BlockPos var3, IBlockState var4) {
> CHANGE 3 : 4 @ 3 : 4
~ public void grow(World world, EaglercraftRandom var2, BlockPos blockpos, IBlockState var4) {
> EOF

View File

@ -1,21 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 35 : 36 @ 35 : 36
~ public void updateTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom var4) {
> CHANGE 44 : 46 @ 44 : 64
~ worldIn.setBlockState(blockpos, iblockstate, 2);
~ worldIn.setBlockToAir(pos);
> EOF

View File

@ -1,20 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 3 : 4 @ 3 : 4
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 31 : 32 @ 31 : 32
~ public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random) {
> CHANGE 85 : 86 @ 85 : 86
~ for (EnumFacing enumfacing1 : (Set<EnumFacing>) set) {
> EOF

View File

@ -1,20 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 35 : 36 @ 35 : 36
~ public void randomDisplayTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random) {
> CHANGE 43 : 44 @ 43 : 46
~ {
> EOF

View File

@ -1,24 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 3 : 4 @ 3 : 4
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 53 : 54 @ 53 : 54
~ public int quantityDropped(EaglercraftRandom var1) {
> CHANGE 4 : 5 @ 4 : 5
~ if (entity.ridingEntity == null && entity.riddenByEntity == null) {
> CHANGE 5 : 6 @ 5 : 6
~ public void randomDisplayTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom random) {
> EOF

View File

@ -1,16 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 3 : 4 @ 3 : 4
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 53 : 54 @ 53 : 54
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> EOF

View File

@ -1,26 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 50 : 51 @ 50 : 51
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> CHANGE 3 : 4 @ 3 : 4
~ public int quantityDropped(EaglercraftRandom var1) {
> DELETE 25 @ 25 : 27
> CHANGE 15 : 16 @ 15 : 16
~ public void randomDisplayTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom random) {
> EOF

View File

@ -1,26 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 36 : 38 @ 36 : 38
~ public void updateTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom var4) {
~ {
> DELETE 2 @ 2 : 3
> CHANGE 6 : 10 @ 6 : 12
~ EntityFallingBlock entityfallingblock = new EntityFallingBlock(worldIn, (double) pos.getX() + 0.5D,
~ (double) pos.getY(), (double) pos.getZ() + 0.5D, worldIn.getBlockState(pos));
~ this.onStartFalling(entityfallingblock);
~ worldIn.spawnEntityInWorld(entityfallingblock);
> EOF

View File

@ -1,24 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 51 : 52 @ 51 : 52
~ public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom var4) {
> CHANGE 15 : 16 @ 15 : 16
~ if (world.rand.nextFloat() < f - 0.5F) {
> CHANGE 50 : 51 @ 50 : 51
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom random, int i) {
> EOF

View File

@ -1,12 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 153 : 154 @ 153 : 154
~ return ItemLead.attachToFence(entityplayer, world, blockpos);
> EOF

View File

@ -1,14 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 125 : 126 @ 125 : 126
~ {
> DELETE 16 @ 16 : 17
> EOF

View File

@ -1,28 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 4 : 5 @ 4 : 5
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 127 : 128 @ 127 : 128
~ public int quantityDropped(EaglercraftRandom var1) {
> CHANGE 7 : 8 @ 7 : 8
~ public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random) {
> CHANGE 106 : 107 @ 106 : 107
~ private void catchOnFire(World worldIn, BlockPos pos, int chance, EaglercraftRandom random, int age) {
> CHANGE 77 : 78 @ 77 : 78
~ public void randomDisplayTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom random) {
> EOF

View File

@ -1,27 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 37 : 38 @ 37 : 39
~ public static PropertyEnum<BlockFlowerPot.EnumFlowerType> CONTENTS;
> INSERT 8 : 12 @ 8
+ public static void bootstrapStates() {
+ CONTENTS = PropertyEnum.<BlockFlowerPot.EnumFlowerType>create("contents", BlockFlowerPot.EnumFlowerType.class);
+ }
+
> CHANGE 124 : 125 @ 124 : 125
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> EOF

View File

@ -1,28 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 40 : 41 @ 40 : 41
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> CHANGE 8 : 9 @ 8 : 9
~ {
> CHANGE 19 : 20 @ 19 : 20
~ public void randomDisplayTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random) {
> CHANGE 30 : 31 @ 30 : 33
~ {
> EOF

View File

@ -1,16 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 18 : 19 @ 18 : 19
~ public int quantityDropped(EaglercraftRandom var1) {
> EOF

View File

@ -1,24 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 22 : 23 @ 22 : 23
~ public int quantityDroppedWithBonus(int i, EaglercraftRandom random) {
> CHANGE 3 : 4 @ 3 : 4
~ public int quantityDropped(EaglercraftRandom random) {
> CHANGE 3 : 4 @ 3 : 4
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> EOF

View File

@ -1,31 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 54 : 56 @ 54 : 56
~ public void updateTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom random) {
~ {
> DELETE 17 @ 17 : 18
> CHANGE 4 : 5 @ 4 : 5
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom random, int i) {
> CHANGE 8 : 9 @ 8 : 9
~ public boolean canUseBonemeal(World var1, EaglercraftRandom var2, BlockPos var3, IBlockState var4) {
> CHANGE 3 : 4 @ 3 : 4
~ public void grow(World world, EaglercraftRandom random, BlockPos blockpos, IBlockState var4) {
> EOF

View File

@ -1,16 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 14 : 15 @ 14 : 15
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom random, int i) {
> EOF

View File

@ -1,12 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 105 : 106 @ 105 : 108
~ {
> EOF

View File

@ -1,28 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 22 : 23 @ 22 : 24
~ public static PropertyEnum<BlockHugeMushroom.EnumType> VARIANT;
> CHANGE 9 : 14 @ 9 : 10
~ public static void bootstrapStates() {
~ VARIANT = PropertyEnum.<BlockHugeMushroom.EnumType>create("variant", BlockHugeMushroom.EnumType.class);
~ }
~
~ public int quantityDropped(EaglercraftRandom random) {
> CHANGE 16 : 17 @ 16 : 17
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> EOF

View File

@ -1,20 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 60 : 61 @ 60 : 61
~ public int quantityDropped(EaglercraftRandom var1) {
> CHANGE 3 : 4 @ 3 : 4
~ public void updateTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom var4) {
> EOF

View File

@ -1,24 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 15 : 16 @ 15 : 16
~ import net.minecraft.nbt.NBTTagCompound;
> CHANGE 34 : 35 @ 34 : 35
~ {
> CHANGE 10 : 11 @ 10 : 11
~ {
> CHANGE 28 : 29 @ 28 : 31
~ super.dropBlockAsItemWithChance(world, blockpos, iblockstate, f, 0);
> EOF

View File

@ -1,37 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 77 : 79 @ 77 : 79
~ public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom var4) {
~ {
> DELETE 78 @ 78 : 79
> CHANGE 3 : 4 @ 3 : 4
~ public void randomDisplayTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom random) {
> CHANGE 15 : 16 @ 15 : 16
~ public int quantityDropped(EaglercraftRandom random) {
> CHANGE 3 : 4 @ 3 : 4
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> CHANGE 4 : 5 @ 4 : 5
~ {
> DELETE 23 @ 23 : 24
> EOF

View File

@ -1,23 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 28 : 29 @ 28 : 30
~ public static PropertyEnum<BlockLever.EnumOrientation> FACING;
> INSERT 9 : 13 @ 9
+ public static void bootstrapStates() {
+ FACING = PropertyEnum.<BlockLever.EnumOrientation>create("facing", BlockLever.EnumOrientation.class);
+ }
+
> CHANGE 121 : 122 @ 121 : 124
~ {
> EOF

View File

@ -1,24 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 114 : 115 @ 114 : 115
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> CHANGE 3 : 4 @ 3 : 4
~ public int quantityDropped(EaglercraftRandom var1) {
> CHANGE 64 : 65 @ 64 : 65
~ public void randomDisplayTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random) {
> EOF

View File

@ -1,19 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 22 : 23 @ 22 : 24
~ public static PropertyEnum<BlockLog.EnumAxis> LOG_AXIS;
> INSERT 8 : 12 @ 8
+ public static void bootstrapStates() {
+ LOG_AXIS = PropertyEnum.<BlockLog.EnumAxis>create("axis", BlockLog.EnumAxis.class);
+ }
+
> EOF

View File

@ -1,24 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 21 : 22 @ 21 : 22
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> CHANGE 3 : 4 @ 3 : 4
~ public int quantityDropped(EaglercraftRandom random) {
> CHANGE 3 : 4 @ 3 : 4
~ public int quantityDroppedWithBonus(int i, EaglercraftRandom random) {
> EOF

View File

@ -1,20 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 26 : 27 @ 26 : 27
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> CHANGE 3 : 4 @ 3 : 4
~ public int quantityDropped(EaglercraftRandom var1) {
> EOF

View File

@ -1,28 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 24 : 25 @ 24 : 25
~ public void updateTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom random) {
> CHANGE 52 : 53 @ 52 : 53
~ public boolean generateBigMushroom(World worldIn, BlockPos pos, IBlockState state, EaglercraftRandom rand) {
> CHANGE 20 : 21 @ 20 : 21
~ public boolean canUseBonemeal(World var1, EaglercraftRandom random, BlockPos var3, IBlockState var4) {
> CHANGE 3 : 4 @ 3 : 4
~ public void grow(World world, EaglercraftRandom random, BlockPos blockpos, IBlockState iblockstate) {
> EOF

View File

@ -1,27 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 38 : 40 @ 38 : 40
~ public void updateTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom random) {
~ {
> DELETE 18 @ 18 : 19
> CHANGE 4 : 5 @ 4 : 5
~ public void randomDisplayTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random) {
> CHANGE 9 : 10 @ 9 : 10
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom random, int i) {
> EOF

View File

@ -1,30 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 43 : 44 @ 43 : 44
~ public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random) {
> CHANGE 10 : 11 @ 10 : 11
~ {
> DELETE 11 @ 11 : 12
> CHANGE 3 : 4 @ 3 : 4
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> CHANGE 3 : 4 @ 3 : 4
~ public int quantityDropped(EaglercraftRandom var1) {
> EOF

View File

@ -1,29 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 29 : 30 @ 29 : 35
~ public static PropertyEnum<BlockPlanks.EnumType> VARIANT;
> INSERT 6 : 14 @ 6
+ public static void bootstrapStates() {
+ VARIANT = PropertyEnum.create("variant", BlockPlanks.EnumType.class, new Predicate<BlockPlanks.EnumType>() {
+ public boolean apply(BlockPlanks.EnumType blockplanks$enumtype) {
+ return blockplanks$enumtype.getMetadata() >= 4;
+ }
+ });
+ }
+
> DELETE 4 @ 4 : 5
> CHANGE 51 : 52 @ 51 : 52
~ if (entityplayer.getCurrentEquippedItem() != null
> EOF

View File

@ -1,23 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 23 : 24 @ 23 : 29
~ public static PropertyEnum<BlockPlanks.EnumType> VARIANT;
> INSERT 6 : 14 @ 6
+ public static void bootstrapStates() {
+ VARIANT = PropertyEnum.create("variant", BlockPlanks.EnumType.class, new Predicate<BlockPlanks.EnumType>() {
+ public boolean apply(BlockPlanks.EnumType blockplanks$enumtype) {
+ return blockplanks$enumtype.getMetadata() >= 4;
+ }
+ });
+ }
+
> EOF

View File

@ -1,18 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 52 : 53 @ 52 : 55
~ {
> CHANGE 13 : 14 @ 13 : 14
~ {
> DELETE 5 @ 5 : 6
> EOF

View File

@ -1,16 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 21 : 22 @ 21 : 22
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> EOF

View File

@ -1,27 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 31 : 32 @ 31 : 37
~ public static PropertyEnum<BlockPlanks.EnumType> VARIANT;
> INSERT 6 : 14 @ 6
+ public static void bootstrapStates() {
+ VARIANT = PropertyEnum.create("variant", BlockPlanks.EnumType.class, new Predicate<BlockPlanks.EnumType>() {
+ public boolean apply(BlockPlanks.EnumType blockplanks$enumtype) {
+ return blockplanks$enumtype.getMetadata() < 4;
+ }
+ });
+ }
+
> CHANGE 85 : 86 @ 85 : 86
~ if (entityplayer.getCurrentEquippedItem() != null
> EOF

View File

@ -1,23 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 23 : 24 @ 23 : 29
~ public static PropertyEnum<BlockPlanks.EnumType> VARIANT;
> INSERT 6 : 14 @ 6
+ public static void bootstrapStates() {
+ VARIANT = PropertyEnum.create("variant", BlockPlanks.EnumType.class, new Predicate<BlockPlanks.EnumType>() {
+ public boolean apply(BlockPlanks.EnumType blockplanks$enumtype) {
+ return blockplanks$enumtype.getMetadata() < 4;
+ }
+ });
+ }
+
> EOF

View File

@ -1,24 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 30 : 31 @ 30 : 31
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> CHANGE 7 : 8 @ 7 : 8
~ public int quantityDropped(EaglercraftRandom random) {
> CHANGE 3 : 4 @ 3 : 4
~ public int quantityDroppedWithBonus(int i, EaglercraftRandom random) {
> EOF

View File

@ -1,16 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 18 : 19 @ 18 : 19
~ public int quantityDropped(EaglercraftRandom var1) {
> EOF

View File

@ -1,16 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 3 : 4 @ 3 : 4
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 55 : 56 @ 55 : 56
~ public Item getItemDropped(IBlockState iblockstate, EaglercraftRandom random, int i) {
> EOF

View File

@ -1,24 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 58 : 59 @ 58 : 62
~ this.checkForMove(world, blockpos, iblockstate);
> CHANGE 3 : 4 @ 3 : 7
~ this.checkForMove(world, blockpos, iblockstate);
> CHANGE 3 : 4 @ 3 : 4
~ if (world.getTileEntity(blockpos) == null) {
> CHANGE 50 : 51 @ 50 : 51
~ {
> EOF

View File

@ -1,28 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 3 : 4 @ 3 : 4
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 29 : 30 @ 29 : 31
~ public static PropertyEnum<BlockPistonExtension.EnumPistonType> TYPE;
> INSERT 11 : 16 @ 11
+ public static void bootstrapStates() {
+ TYPE = PropertyEnum.<BlockPistonExtension.EnumPistonType>create("type",
+ BlockPistonExtension.EnumPistonType.class);
+ }
+
> CHANGE 44 : 45 @ 44 : 45
~ public int quantityDropped(EaglercraftRandom var1) {
> EOF

View File

@ -1,39 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 32 : 33 @ 32 : 33
~ public static PropertyEnum<BlockPistonExtension.EnumPistonType> TYPE;
> INSERT 8 : 12 @ 8
+ public static void bootstrapStates() {
+ TYPE = BlockPistonExtension.TYPE;
+ }
+
> CHANGE 47 : 48 @ 47 : 48
~ if (world.getTileEntity(blockpos) == null) {
> CHANGE 7 : 8 @ 7 : 8
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> CHANGE 4 : 5 @ 4 : 5
~ {
> CHANGE 13 : 14 @ 13 : 17
~ world.getTileEntity(blockpos);
> EOF

View File

@ -1,19 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 23 : 24 @ 23 : 25
~ public static PropertyEnum<BlockPlanks.EnumType> VARIANT;
> INSERT 7 : 11 @ 7
+ public static void bootstrapStates() {
+ VARIANT = PropertyEnum.<BlockPlanks.EnumType>create("variant", BlockPlanks.EnumType.class);
+ }
+
> EOF

View File

@ -1,29 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 4 @ 2 : 4
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
~ import net.lax1dude.eaglercraft.v1_8.cache.EaglerLoadingCache;
> CHANGE 38 : 39 @ 38 : 39
~ public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random) {
> CHANGE 119 : 120 @ 119 : 120
~ public int quantityDropped(EaglercraftRandom var1) {
> CHANGE 14 : 15 @ 14 : 15
~ public void randomDisplayTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom random) {
> CHANGE 46 : 47 @ 46 : 47
~ EaglerLoadingCache loadingcache = BlockPattern.func_181627_a(parWorld, true);
> EOF

View File

@ -1,14 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 28 : 29 @ 28 : 29
~ {
> DELETE 3 @ 3 : 4
> EOF

View File

@ -1,12 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 55 : 56 @ 55 : 56
~ for (Entity entity : (List<Entity>) list) {
> EOF

View File

@ -1,19 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 24 : 25 @ 24 : 26
~ public static PropertyEnum<BlockPrismarine.EnumType> VARIANT;
> INSERT 10 : 14 @ 10
+ public static void bootstrapStates() {
+ VARIANT = PropertyEnum.<BlockPrismarine.EnumType>create("variant", BlockPrismarine.EnumType.class);
+ }
+
> EOF

View File

@ -1,19 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 27 : 28 @ 27 : 29
~ public static PropertyEnum<BlockQuartz.EnumType> VARIANT;
> INSERT 7 : 11 @ 7
+ public static void bootstrapStates() {
+ VARIANT = PropertyEnum.<BlockQuartz.EnumType>create("variant", BlockQuartz.EnumType.class);
+ }
+
> EOF

View File

@ -1,19 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 19 : 20 @ 19 : 21
~ public static PropertyEnum<BlockRailBase.EnumRailDirection> SHAPE;
> INSERT 7 : 11 @ 7
+ public static void bootstrapStates() {
+ SHAPE = PropertyEnum.<BlockRailBase.EnumRailDirection>create("shape", BlockRailBase.EnumRailDirection.class);
+ }
+
> EOF

View File

@ -1,29 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> INSERT 3 : 4 @ 3
+
> CHANGE 79 : 80 @ 79 : 80
~ {
> DELETE 5 @ 5 : 6
> CHANGE 3 : 4 @ 3 : 4
~ {
> DELETE 27 @ 27 : 28
> CHANGE 8 : 10 @ 8 : 11
~ return (new BlockRailBase.Rail(worldIn, parBlockPos, parIBlockState))
~ .func_180364_a(worldIn.isBlockPowered(parBlockPos), parFlag).getBlockState();
> EOF

View File

@ -1,44 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 4 : 5 @ 4 : 5
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 26 : 27 @ 26 : 35
~ public static PropertyEnum<BlockRailBase.EnumRailDirection> SHAPE;
> INSERT 9 : 21 @ 9
+ public static void bootstrapStates() {
+ SHAPE = PropertyEnum.create("shape", BlockRailBase.EnumRailDirection.class,
+ new Predicate<BlockRailBase.EnumRailDirection>() {
+ public boolean apply(BlockRailBase.EnumRailDirection blockrailbase$enumraildirection) {
+ return blockrailbase$enumraildirection != BlockRailBase.EnumRailDirection.NORTH_EAST
+ && blockrailbase$enumraildirection != BlockRailBase.EnumRailDirection.NORTH_WEST
+ && blockrailbase$enumraildirection != BlockRailBase.EnumRailDirection.SOUTH_EAST
+ && blockrailbase$enumraildirection != BlockRailBase.EnumRailDirection.SOUTH_WEST;
+ }
+ });
+ }
+
> CHANGE 9 : 10 @ 9 : 10
~ {
> CHANGE 6 : 7 @ 6 : 7
~ public void randomTick(World var1, BlockPos var2, IBlockState var3, EaglercraftRandom var4) {
> CHANGE 2 : 4 @ 2 : 4
~ public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom var4) {
~ if (((Boolean) iblockstate.getValue(POWERED)).booleanValue()) {
> EOF

View File

@ -1,27 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 21 : 22 @ 21 : 30
~ public static PropertyEnum<BlockRailBase.EnumRailDirection> SHAPE;
> INSERT 9 : 21 @ 9
+ public static void bootstrapStates() {
+ SHAPE = PropertyEnum.create("shape", BlockRailBase.EnumRailDirection.class,
+ new Predicate<BlockRailBase.EnumRailDirection>() {
+ public boolean apply(BlockRailBase.EnumRailDirection blockrailbase$enumraildirection) {
+ return blockrailbase$enumraildirection != BlockRailBase.EnumRailDirection.NORTH_EAST
+ && blockrailbase$enumraildirection != BlockRailBase.EnumRailDirection.NORTH_WEST
+ && blockrailbase$enumraildirection != BlockRailBase.EnumRailDirection.SOUTH_EAST
+ && blockrailbase$enumraildirection != BlockRailBase.EnumRailDirection.SOUTH_WEST;
+ }
+ });
+ }
+
> EOF

View File

@ -1,19 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 23 : 24 @ 23 : 25
~ public static PropertyEnum<BlockRedSandstone.EnumType> TYPE;
> INSERT 7 : 11 @ 7
+ public static void bootstrapStates() {
+ TYPE = PropertyEnum.<BlockRedSandstone.EnumType>create("type", BlockRedSandstone.EnumType.class);
+ }
+
> EOF

View File

@ -1,31 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 4 : 5 @ 4 : 5
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 35 : 36 @ 35 : 37
~ public static PropertyEnum<BlockRedstoneComparator.Mode> MODE;
> INSERT 9 : 13 @ 9
+ public static void bootstrapStates() {
+ MODE = PropertyEnum.<BlockRedstoneComparator.Mode>create("mode", BlockRedstoneComparator.Mode.class);
+ }
+
> CHANGE 4 : 5 @ 4 : 5
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> CHANGE 148 : 149 @ 148 : 149
~ public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom var4) {
> EOF

View File

@ -1,20 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 43 : 44 @ 43 : 44
~ public void randomTick(World var1, BlockPos var2, IBlockState var3, EaglercraftRandom var4) {
> CHANGE 2 : 3 @ 2 : 3
~ public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom var4) {
> EOF

View File

@ -1,35 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 29 : 30 @ 29 : 30
~ {
> DELETE 5 @ 5 : 6
> CHANGE 4 : 5 @ 4 : 5
~ {
> DELETE 5 @ 5 : 6
> CHANGE 3 : 5 @ 3 : 5
~ public void updateTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom var4) {
~ {
> DELETE 3 @ 3 : 4
> CHANGE 3 : 4 @ 3 : 4
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> EOF

View File

@ -1,36 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 61 : 62 @ 61 : 62
~ public void updateTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom var4) {
> CHANGE 6 : 7 @ 6 : 7
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> CHANGE 3 : 4 @ 3 : 4
~ public int quantityDroppedWithBonus(int i, EaglercraftRandom random) {
> CHANGE 3 : 4 @ 3 : 4
~ public int quantityDropped(EaglercraftRandom random) {
> CHANGE 12 : 13 @ 12 : 13
~ public void randomDisplayTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom var4) {
> CHANGE 7 : 8 @ 7 : 8
~ EaglercraftRandom random = worldIn.rand;
> EOF

View File

@ -1,20 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 73 : 74 @ 73 : 74
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> CHANGE 15 : 16 @ 15 : 16
~ public void randomDisplayTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random) {
> EOF

View File

@ -1,28 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 6 : 7 @ 6 : 7
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 85 : 86 @ 85 : 86
~ public void randomTick(World var1, BlockPos var2, IBlockState var3, EaglercraftRandom var4) {
> CHANGE 2 : 3 @ 2 : 3
~ public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random) {
> CHANGE 48 : 49 @ 48 : 49
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> CHANGE 7 : 8 @ 7 : 8
~ public void randomDisplayTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random) {
> EOF

View File

@ -1,65 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 6 : 7 @ 6 : 7
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 31 : 35 @ 31 : 39
~ public static PropertyEnum<BlockRedstoneWire.EnumAttachPosition> NORTH;
~ public static PropertyEnum<BlockRedstoneWire.EnumAttachPosition> EAST;
~ public static PropertyEnum<BlockRedstoneWire.EnumAttachPosition> SOUTH;
~ public static PropertyEnum<BlockRedstoneWire.EnumAttachPosition> WEST;
> INSERT 14 : 25 @ 14
+ public static void bootstrapStates() {
+ NORTH = PropertyEnum.<BlockRedstoneWire.EnumAttachPosition>create("north",
+ BlockRedstoneWire.EnumAttachPosition.class);
+ EAST = PropertyEnum.<BlockRedstoneWire.EnumAttachPosition>create("east",
+ BlockRedstoneWire.EnumAttachPosition.class);
+ SOUTH = PropertyEnum.<BlockRedstoneWire.EnumAttachPosition>create("south",
+ BlockRedstoneWire.EnumAttachPosition.class);
+ WEST = PropertyEnum.<BlockRedstoneWire.EnumAttachPosition>create("west",
+ BlockRedstoneWire.EnumAttachPosition.class);
+ }
+
> CHANGE 52 : 53 @ 52 : 53
~ for (BlockPos blockpos : (ArrayList<BlockPos>) arraylist) {
> CHANGE 78 : 79 @ 78 : 79
~ {
> DELETE 18 @ 18 : 19
> CHANGE 5 : 6 @ 5 : 6
~ {
> DELETE 18 @ 18 : 19
> CHANGE 13 : 18 @ 13 : 21
~ if (this.canPlaceBlockAt(world, blockpos)) {
~ this.updateSurroundingRedstone(world, blockpos, iblockstate);
~ } else {
~ this.dropBlockAsItem(world, blockpos, iblockstate, 0);
~ world.setBlockToAir(blockpos);
> CHANGE 3 : 4 @ 3 : 4
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> CHANGE 99 : 100 @ 99 : 100
~ public void randomDisplayTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random) {
> EOF

View File

@ -1,20 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 34 : 35 @ 34 : 35
~ public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom var4) {
> CHANGE 62 : 63 @ 62 : 63
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> EOF

View File

@ -1,19 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 22 : 23 @ 22 : 24
~ public static PropertyEnum<BlockSand.EnumType> VARIANT;
> INSERT 5 : 9 @ 5
+ public static void bootstrapStates() {
+ VARIANT = PropertyEnum.<BlockSand.EnumType>create("variant", BlockSand.EnumType.class);
+ }
+
> EOF

View File

@ -1,19 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 23 : 24 @ 23 : 25
~ public static PropertyEnum<BlockSandStone.EnumType> TYPE;
> INSERT 7 : 11 @ 7
+ public static void bootstrapStates() {
+ TYPE = PropertyEnum.<BlockSandStone.EnumType>create("type", BlockSandStone.EnumType.class);
+ }
+
> EOF

View File

@ -1,46 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 3 : 4 @ 3 : 4
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 36 : 37 @ 36 : 38
~ public static PropertyEnum<BlockPlanks.EnumType> TYPE;
> INSERT 10 : 14 @ 10
+ public static void bootstrapStates() {
+ TYPE = PropertyEnum.<BlockPlanks.EnumType>create("type", BlockPlanks.EnumType.class);
+ }
+
> CHANGE 5 : 7 @ 5 : 7
~ public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random) {
~ {
> DELETE 4 @ 4 : 5
> CHANGE 3 : 4 @ 3 : 4
~ public void grow(World worldIn, BlockPos pos, IBlockState state, EaglercraftRandom rand) {
> CHANGE 8 : 9 @ 8 : 9
~ public void generateTree(World worldIn, BlockPos pos, IBlockState state, EaglercraftRandom rand) {
> CHANGE 119 : 120 @ 119 : 120
~ public boolean canUseBonemeal(World world, EaglercraftRandom var2, BlockPos var3, IBlockState var4) {
> CHANGE 3 : 4 @ 3 : 4
~ public void grow(World world, EaglercraftRandom random, BlockPos blockpos, IBlockState iblockstate) {
> EOF

View File

@ -1,24 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 22 : 23 @ 22 : 23
~ public int quantityDropped(EaglercraftRandom random) {
> CHANGE 3 : 4 @ 3 : 4
~ public int quantityDroppedWithBonus(int i, EaglercraftRandom random) {
> CHANGE 3 : 4 @ 3 : 4
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> EOF

View File

@ -1,20 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 58 : 59 @ 58 : 59
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> CHANGE 9 : 10 @ 9 : 12
~ {
> EOF

View File

@ -1,28 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 3 : 4 @ 3 : 4
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 25 : 26 @ 25 : 27
~ public static PropertyEnum<BlockSilverfish.EnumType> VARIANT;
> CHANGE 8 : 13 @ 8 : 9
~ public static void bootstrapStates() {
~ VARIANT = PropertyEnum.<BlockSilverfish.EnumType>create("variant", BlockSilverfish.EnumType.class);
~ }
~
~ public int quantityDropped(EaglercraftRandom var1) {
> CHANGE 27 : 28 @ 27 : 28
~ if (world.getGameRules().getBoolean("doTileDrops")) {
> EOF

View File

@ -1,33 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 3 : 4 @ 3 : 4
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 18 : 20 @ 18 : 20
~ import net.minecraft.nbt.NBTTagCompound;
~ import net.minecraft.nbt.NBTUtil;
> CHANGE 110 : 111 @ 110 : 111
~ {
> CHANGE 20 : 21 @ 20 : 21
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> CHANGE 5 : 6 @ 5 : 6
~ && this.getWitherBasePattern().match(worldIn, pos) != null;
> CHANGE 3 : 4 @ 3 : 5
~ if (te.getSkullType() == 1 && pos.getY() >= 2 && worldIn.getDifficulty() != EnumDifficulty.PEACEFUL) {
> EOF

View File

@ -1,52 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 3 : 4 @ 3 : 4
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> INSERT 7 : 9 @ 7
+ import net.lax1dude.eaglercraft.v1_8.sp.server.classes.net.minecraft.entity.player.EntityPlayer;
+ import net.lax1dude.eaglercraft.v1_8.sp.server.classes.net.minecraft.entity.projectile.EntityArrow;
> INSERT 2 : 3 @ 2
+ import net.lax1dude.eaglercraft.v1_8.sp.server.classes.net.minecraft.server.MinecraftServer;
> CHANGE 15 : 16 @ 15 : 17
~ public static PropertyEnum<BlockSlab.EnumBlockHalf> HALF;
> INSERT 12 : 16 @ 12
+ public static void bootstrapStates() {
+ HALF = PropertyEnum.<BlockSlab.EnumBlockHalf>create("half", BlockSlab.EnumBlockHalf.class);
+ }
+
> CHANGE 48 : 49 @ 48 : 49
~ public int quantityDropped(EaglercraftRandom var1) {
> INSERT 65 : 78 @ 65
+
+ public boolean onBlockActivated(World world, BlockPos blockpos, IBlockState var3, EntityPlayer entityplayer,
+ EnumFacing var5, float var6, float var7, float var8) {
+ if (MinecraftServer.getServer().worldServers[0].getWorldInfo().getGameRulesInstance().getBoolean("clickToSit")
+ && entityplayer.getHeldItem() == null) {
+ EntityArrow arrow = new EntityArrow(world, blockpos.getX() + 0.5D, blockpos.getY(), blockpos.getZ() + 0.5D);
+ arrow.isChair = true;
+ world.spawnEntityInWorld(arrow);
+ entityplayer.mountEntity(arrow);
+ return true;
+ }
+ return super.onBlockActivated(world, blockpos, var3, entityplayer, var5, var6, var7, var8);
+ }
> EOF

View File

@ -1,24 +0,0 @@
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 2 : 3 @ 2 : 3
~ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
> CHANGE 104 : 105 @ 104 : 105
~ public Item getItemDropped(IBlockState var1, EaglercraftRandom var2, int var3) {
> CHANGE 3 : 4 @ 3 : 4
~ public int quantityDropped(EaglercraftRandom var1) {
> CHANGE 3 : 4 @ 3 : 4
~ public void updateTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom var4) {
> EOF

Some files were not shown because too many files have changed in this diff Show More