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

skip999

Members
  • Content Count

    130
  • Joined

  • Last visited

Community Reputation

0 Neutral

About skip999

  • Rank
    Creeper Killer

Recent Profile Visitors

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

  1. Hello, I have been working on rendering a custom projectile entity for an item I have been working on. I have gotten the entity to render how I need it to, except for one small problem: it is not orienting to the direction of the player's camera. I have tried playing around with various rotation Quaternions for the Matrix Stack, but to no effect. The closest I got was having the rotation be based on the player's camera orientation. This gives the entity the initial orientation that I want, but the problem is then that the projectile will always be rendered like that. I know there is a wa
  2. Okay this is working perfectly. However, I get this cursed image when I run my code: I've tried calling different drawString variants, but to no avail. Here is the code I am using: @SuppressWarnings("resource") @SubscribeEvent public static void renderRailgunTooltip(RenderGameOverlayEvent event) { ItemStack gunStackMainHand = Minecraft.getInstance().player.getItemStackFromSlot(EquipmentSlotType.MAINHAND); ItemStack gunStackOffHand = Minecraft.getInstance().player.getItemStackFromSlot(EquipmentSlotType.OFFHAND);
  3. Okay taking a look at that, that's more along the lines of what I need. However, I now have a problem in that I have no way of getting at the item in the player's inventory. What would I need to call in order to accomplish that?
  4. Hello, I have been working on a custom tool. One of it's properties is that it has a temperature. I have this displayed in the item's tooltip, but I would also like to display it to the player's screen for ease of use. I was recommended to look into the RenderTooltipEvent, but I was unable to find anything in the event or it's sub classes that would actually enable me to accomplish this. Am I looking at the wrong event, or am I simply missing something. Thanks in advance!
  5. Wait nvm found it. Didn't realize RenderTooltipEvent had some classes contained within it.
  6. I am also running into another issue: I need an instance of Screen in order to call the renderToolTip method. How would I get that from the event?
  7. Okay one final quesiton: How would I get either an instance of IReorderingProcessor or an instance of ITextComponent from an instance of ITextProperties? I took a look around the available method calls and couldn't find one that worked.
  8. Would I tag the class with @OnlyIn(Dist.CLIENT) for the event handler? Or would I configure it as normal?
  9. well to call Screen.renderToolTip() I need to pass in an instance of MatrixStack as one of the parameters
  10. Okay my only question is how do I get an instance of MatrixStack while in the addInformation() method?
  11. Hello, I would like to display some text on the player's screen (like when an item is scrolled over, only permanently) when a certain condition is met. I know how to add a tooltip via overriding the addInformation() method, and I imagine it is done through that method. However I have no idea what to call. Thanks in advance!
  12. Hello, I have been attempting to render a custom model for my armor. I have created the model in blockbench and have generated the texture mapping for it. However, the java class that block bench generates is not mapping properly to the player nor the texture map that comes along with it. I cannot seem to understand why. My only thought is that since block bench generates the class as extending EntityModel and not as Extending BipedModel, the shapes it makes are some how incorrect. I have attached the relevant classes as well as the class that BlockBench generates. Any help wo
  13. I swapped it to use the getPosition() option instead of the chunk coords and that worked. I appreciate the help. Events and Sounds are things I haven't worked with before. so I'm learning as I go as it were
  14. This is the if statement in the LivingHurtEvent method if(event.getAmount() >= LETHAL_DAMAGE_AMOUNT && h.getPlateCount() > 0) { event.setAmount((float) Math.sqrt(event.getAmount())); h.setPlateCount(h.getPlateCount() - 1); event.getEntityLiving().getEntityWorld().playSound( null, event.getEntityLiving().chunkCoordX, event.getEntityLiving().chunkCoordY, event.getE
  15. I've tried using variant where you pass in null for the player, but that also didn't work. I forgot to mention that.
×
×
  • Create New...

Important Information

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