Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

DoctorG_Mystery

Members
  • Posts

    41
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

DoctorG_Mystery's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. it makes no sense we already have 74 replies and we haven't gone any further I think we should close the thread and forget about the whole thing.
  2. I see what data if gives me I see the data I want I can declare it in my class but I can't initializ "= null;" remove the error but is wrong
  3. maybe I now It but I don't now the keywords and because that I don't understand you, besides, I do not code with prescribed code in Library form
  4. look: I am doing "learning by doing" and not only understand Forge mobing but also Java as well as the IDE Eclipse tell me a keyword then i can learn it but if i don't know what to learn then i can't learn it
  5. If I type in the useOn methode: PlayerEntity Player; ... there is an error because it isn't initialized
  6. I try to declare it because the functions world hand and player will not work
  7. I try to declare the player, hand and world and @poopoodice said in ItemUseContext is all I need
  8. I wanted to add that I am doing "learning by doing" and not only understand Forge mobing but also Java as well as the IDE Eclipse, so when I look very stupid (and I feel stupid to myself because I sometimes don't check it what you mean) so sorry for that and thank you for your time for my problem with Probgarmmiren ^^
  9. I make now a private final PlayerEntity player; private final Hand ... there issn't any errors and that is also what is in ItemUseContext
  10. no errors more PlayerEntity player; World world; Hand hand; @Override public ActionResultType useOn(ItemUseContext p_195939_1_) { if(!world.isClientSide){ ; double x = player.position().x(); double y = player.position().y(); double z = player.position().z(); BlockPos blockPos = new BlockPos(x, y, z); world.setBlockAndUpdate(blockPos, Blocks.DIAMOND_BLOCK.defaultBlockState()); } return super.useOn(p_195939_1_); }
  11. look better so? PlayerEntity player = null; World world = null; Hand hand = null; if(!world.isClientSide){ ; double x = player.position().x(); double y = player.position().y(); double z = player.position().z(); BlockPos blockPos = new BlockPos(x, y, z); world.setBlockAndUpdate(blockPos, Blocks.DIAMOND_BLOCK.defaultBlockState()); }
  12. errors at this points: if(!world.isClientSide){ double x = player.position().x(); double y = player.position().y(); double z = player.position().z(); BlockPos blockPos = new BlockPos(x, y, z); world.setBlockAndUpdate(blockPos, Blocks.DIAMOND_BLOCK.defaultBlockState()); }
  13. I never used overriding before. I never need it or it was do automaticly. because I never used overriding before I ever can declare a methode parameter without some problems like this
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.