Everything posted by BusyBeever
-
[SOLVED] [1.8.9] java.lang.ClassNotFoundException SideOnly Client Code
http://www.minecraftforge.net/forum/index.php/topic,22764.0.html
-
[1.8] - How to create a custom tank
make ur TileEntity implement IFluidTank. For more help google how to use IFluidTank, there is plenty of information
-
[1.8]Trying to check if i am killing a zombie
oh boy. ooooh boy. First of all read how to use the events (you are not using living death event) Second. its event.entity instanceof EntityZombie Third.. I guess I will leave a hint to seriously study java
-
[1.8] Overriding a method in ItemRenderer
http://en.lmgtfy.com/?q=java+how+to+override+methods
-
[1.7.10] Add recipes for every item that extends a specific class
seems legit.
-
[1.7.10] Add recipes for every item that extends a specific class
The crafting inventory can be smaller then 3. e.g. 2x2 so dont iterate until 3, check the size of the crafting and use that as bounds why are u adding all stacks to the list? why not all that are !=null? after that u can check if the size of the list is 2. if it is not ur recipe wont match
-
[1.7.10] Generating textures during startup
exactly!
-
[1.7.10] Generating textures during startup
in 1.8 there is ISmartItemModel that you can use, in 1.7.1 it was... IItemModel? Im not sure but there was a way to create dynamic textures on the fly
-
[1.7.10] Add recipes for every item that extends a specific class
The problem right now is that the player can put in like 4 rad armors, one normal armor 4 sticks and your recipe would still say "hey that matches"
-
1.7.10 enchanted bow shoots an arrow that adds potion effect to entity
Yes. The event is called LivingHurt, there u can check if the dmg comes form an arrow
-
[1.8.9][Networking] Some questions about dedicated server and modded clients
The thing is if you think about it you ALWAYS know at which side you are at the moment. If you are sending a packet always make sure that you define where your packet is going (client->server / server->client) that way you always know how to access the information when handling the packet. e.g. a packet to sync tileentity data is supposed to go from server to client, so you know you can always access Minecraft.getMinecraft if needed etc
-
Weak Reference
You dont really need multiple inheritance if you are designing your code correct.
-
[1.8.9] Understanding Capabilities
Well. I dont see any example of using a capability, and the tutorial from readthedocs is seriously hard to read. Im just having problems because im just like "oh yeah that piece of code looks awesome but I dont really see where I use it". But thats obviously also my problem because I kinda hate text tutorials.
-
[1.8] Custom Biome Not Spawning
setting the second argument to 100 does not mean 100%
-
[1.8.9] Understanding Capabilities
If I see this right I need to manually save it right? public abstract class TileEntityInventoryProvider extends TileEntity{ private ItemStackHandler handler; private static final String INVENTORY_KEY = "beeverutils.inventory"; protected abstract int getSize(); public TileEntityInventoryProvider() { handler = new ItemStackHandler(getSize()); } @Override public boolean hasCapability(Capability<?> capability, EnumFacing facing) { if(capability==CapabilityItemHandler.ITEM_HANDLER_CAPABILITY) return true; return false; } @Override public <T> T getCapability(Capability<T> capability, EnumFacing facing) { // TODO Auto-generated method stub return (T)handler; } @Override public void writeToNBT(NBTTagCompound compound) { super.writeToNBT(compound); compound.setTag(INVENTORY_KEY, handler.serializeNBT()); } @Override public void readFromNBT(NBTTagCompound compound) { super.readFromNBT(compound); handler.deserializeNBT((NBTTagCompound) compound.getTag(INVENTORY_KEY)); } }
-
[1.8.9] Understanding Capabilities
Hey everyone, I am triing to start getting used to the new Capabilities system. I am triing to create my own TileEntity with an Capabilitie, instead of IInventory. And even after reading the page about it I am TOTALLY confused. Do I need to create my TileEntity and make it an ICapabilityProvider?
-
[1.8] Creating and rendering a multiblock.....
the ModelSCObj is underlined saying Cannot instantiate the type ModelSCObj thats because ModelSCObj is an abstract class. https://docs.oracle.com/javase/tutorial/java/IandI/abstract.html
IPS spam blocked by CleanTalk.