package com.kami.blocks;
import net.minecraft.block.Block;
import net.minecraft.block.BlockStairs;
public class RBstairs extends BlockStairs{
protected RBstairs(Rbricks p_i45428_1_, 0 p_i45428_2_) {
super(p_i45428_1_, p_i45428_2_);
// TODO Auto-generated constructor stub
}
}
the first code is wrong, this have only a little problem: the constructor have to be public:
public RBstairs(Rbricks p_i45428_1_, 0 p_i45428_2_) {
protected means that you can access to the class from the class itself or the same package but not from classes on other packages, then you can't do RBstairs = new BlockStairs(Rbricks, 0) in your main class file because BlockStairs constructor is protected and can only be accessed if your class is in the package net.minecraft.block
As far as I remember this is a bug of minecraft and there isn't a simply way to solve it (I think ASM can solve it but honestly i don't know in which classes it should work)
I don't know very well the render part but i think you should remove (or better comment) the GL11.glEnable(GL11.GL_TEXTURE_2D) (I don't know if it solves the problem)
0
I think you can save your data as NBT into chunks:
http://www.minecraftforge.net/forum/index.php?topic=17345.0
N.B. they are going to be available only when the chunk loads
0
this code decrease the itemstack size:
remove it and your itemstack will not decrease
0
sky_01 the player render isn't based on model render in gui but it calls the entities render manager and renders an instance of the player
0
the first code is wrong, this have only a little problem: the constructor have to be public:
public RBstairs(Rbricks p_i45428_1_, 0 p_i45428_2_) {
protected means that you can access to the class from the class itself or the same package but not from classes on other packages, then you can't do RBstairs = new BlockStairs(Rbricks, 0) in your main class file because BlockStairs constructor is protected and can only be accessed if your class is in the package net.minecraft.block
P.S. a little java lesson for you
0
in "server ip" you don't need to put an ip, leave it blank
0
ops, lol i didn't know about this
1
EDIT: probably i know what problem you have, your func_130009_a is this?
sorry but i don't remember how is built... if you have this.func_130009_a(args) you have to replace it with super.func_130009_a(args);
because it will call the original function. let me know if that was your problem
0
post the report error on pastebin and link it
it's more easy
0
As far as I remember this is a bug of minecraft and there isn't a simply way to solve it (I think ASM can solve it but honestly i don't know in which classes it should work)
0
I don't know very well the render part but i think you should remove (or better comment) the GL11.glEnable(GL11.GL_TEXTURE_2D) (I don't know if it solves the problem)
0
you have to remove
because if light level is equals to 3 (idk why) your block will be replaced with "Rdirt"
and then you have to remove
and fibally a "}" at the end of the code
this should work
P.S. I suggest you to learn almost the basic java because without that you can't even start developing a mod (this would not be an offense)
0
ok done
have a nice mod continuation
0
Should I remove the code from my messages?
0
it's true XD
however, you registered the two packets with the same id.
would be
P.S. if you want edit the past messages and remove the code if you don't want to show it
0
can you send the class that register your messages?