Skip to content

Commit

Permalink
can I get away with empty classes?
Browse files Browse the repository at this point in the history
  • Loading branch information
stpv221 authored Jun 5, 2024
1 parent 814ecc4 commit 13b5e60
Show file tree
Hide file tree
Showing 9 changed files with 82 additions and 1 deletion.
3 changes: 2 additions & 1 deletion desktopRuntime/resources/assets/minecraft/lang/en_US.lang
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,8 @@ item.prismarineShard.name=Prismarine Shard
item.prismarineCrystals.name=Prismarine Crystals
item.iceball.name=Iceball
item.rock.name=Rock
item.crystalStaff.name=Crystal Staff
item.crystal_staff.name=Crystal Staff
item.magic_book.name=Book Of Wizardry

container.inventory=Inventory
container.hopper=Item Hopper
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parent": "builtin/generated",
"textures": {
"layer0": "items/magic_book"
},
"display": {
"thirdperson": {
"rotation": [ -90, 0, 0 ],
"translation": [ 0, 1, -3 ],
"scale": [ 0.55, 0.55, 0.55 ]
},
"firstperson": {
"rotation": [ 0, -135, 25 ],
"translation": [ 0, 4, 2 ],
"scale": [ 1.7, 1.7, 1.7 ]
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/main/java/net/ice/gui/BookGUI.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package net.ice.gui;

public class BookGUI {

}
5 changes: 5 additions & 0 deletions src/main/java/net/ice/spell/Spell.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package net.ice.spell;

public class Spell {

}
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,7 @@ public ModelResourceLocation getModelLocation(ItemStack var1) {
this.registerItem(Items.iceball, "iceball");
this.registerItem(Items.crystal_staff, "crystal_staff");
this.registerItem(Items.rock, "rock");
this.registerItem(Items.magic_book, "magic_book");
this.registerItem(Items.record_13, "record_13");
this.registerItem(Items.record_cat, "record_cat");
this.registerItem(Items.record_blocks, "record_blocks");
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/net/minecraft/init/Items.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ public class Items {
public static Item iceball;
public static Item crystal_staff;
public static Item rock;
public static Item magic_book;
public static Item ruby;
public static Item record_13;
public static Item record_cat;
Expand Down Expand Up @@ -409,6 +410,7 @@ static void doBootstrap() {
iceball = getRegisteredItem("iceball");
crystal_staff = getRegisteredItem("crystal_staff");
rock = getRegisteredItem("rock");
magic_book = getRegisteredItem("magic_book");
record_13 = getRegisteredItem("record_13");
record_cat = getRegisteredItem("record_cat");
record_blocks = getRegisteredItem("record_blocks");
Expand Down
1 change: 1 addition & 0 deletions src/main/java/net/minecraft/item/Item.java
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,7 @@ public String apply(ItemStack itemstack) {
registerItem(434, (String) "rock", (new ItemRock()).setUnlocalizedName("rock"));
registerItem(436, (String) "ruby",
(new Item()).setUnlocalizedName("ruby").setCreativeTab(CreativeTabs.tabMaterials));
registerItem(437, (String) "magic_book", (new ItemMagicBook()).setUnlocalizedName("magicBook"));
registerItem(2256, (String) "record_13", (new ItemRecord("13")).setUnlocalizedName("record"));
registerItem(2257, (String) "record_cat", (new ItemRecord("cat")).setUnlocalizedName("record"));
registerItem(2258, (String) "record_blocks", (new ItemRecord("blocks")).setUnlocalizedName("record"));
Expand Down
48 changes: 48 additions & 0 deletions src/main/java/net/minecraft/item/ItemMagicBook.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
package net.minecraft.item;

import java.util.List;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.inventory.Slot;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.nbt.NBTTagString;
import net.minecraft.network.play.server.S2FPacketSetSlot;
import net.minecraft.stats.StatList;
import net.minecraft.util.ChatComponentProcessor;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.IChatComponent;
import net.minecraft.util.StatCollector;
import net.minecraft.util.StringUtils;
import net.minecraft.world.World;

/**+
* 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, 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 ItemMagicBook extends Item {
public ItemMagicBook() {
this.setMaxStackSize(1);
}
public boolean hasEffect(ItemStack var1) {
return true;
}
}

0 comments on commit 13b5e60

Please sign in to comment.