Everything posted by Coder
-
Reflection making items invisible?
I would like to get the item that has joined, get its name, take that name check if it is included inside an array if so, tell me that this item is there and it has the said custom name. I want to highlight items that spawn when you have many items on the ground it is very helpful. That's all.
-
Reflection making items invisible?
I would like to target items with a specific custom name for highlighting etc
-
Reflection making items invisible?
Aha! But for some reason it returns "Air" instead on the item name
-
Reflection making items invisible?
I would like to get the name of every item that "joins" the world. Meaning the entity item that's on the ground.
-
Reflection making items invisible?
Sorry for me acting like a complete noob. How do I get this using entityjoinworldevent?
-
Reflection making items invisible?
I think you need reflection for this
-
Reflection making items invisible?
Just get the custom name of the item.
- Reflection making items invisible?
-
Reflection making items invisible?
Hello, I am using reflection to get an item's display name by replacing its data manager. the only thing I am changing there is setEntryValues in which I find the itemStack and like this, I get the item display name. Sometimes when an item spawns it will disappear client side but when I will walk to the item location I will pick it up. Is it possible that forge is removing the visibility of the item for some reason?
-
[1.12.2] Viewing what's inside a chest without opening it
Is it possible to get a list of all the items inside a chest without opening it? (Client side)
-
Getting � when trying to equal formatted string
I am getting text using .getName().getUnformattedComponentText() however, the server adds § to format the colors, I can't really remove it if I don't have access to how the server displays it. Can I compare these two "getUnformattedComponentText" that have some formatting in them?
-
Getting � when trying to equal formatted string
I am trying to find out if a formatted string is equal to something. When I open the game inside eclipse it works, but when I compile it, it doesn't recognize the § symbol. (my idea is it replaces it with �). Can I do something about this? I really need the text with the formatting codes, it is stored inside a string variable.
-
Adding text to chest with a specific name
oh right, reflections are no fun
-
Adding text to chest with a specific name
I did, but I couldn't manage to access upperChestInventory
-
Adding text to chest with a specific name
I checked GuiChest by itself and what e.getGui() gives, also e.getGui().getClass() , couldn't find it. I'm probably not even close
-
Adding text to chest with a specific name
Awesome it worked. I am fiddling around trying to figure out how to get the custom chest name. Should it be inside getGui()?
-
Adding text to chest with a specific name
I don't think I really know how to do this, do you have an example of this? GL11.glColor4f(1, 1, 1, 1); This is what I found but it does nothing. Also, can I get the chest's custom name from this event?
-
Adding text to chest with a specific name
ScaledResolution sr = new ScaledResolution(mc); String displayGUIText = "This is a place-holder"; e.getGui().drawString(mc.fontRenderer, displayGUIText, sr.getScaledWidth() / 2 - mc.fontRenderer.getStringWidth(displayGUIText) / 2, sr.getScaledHeight() / 2 - 85, 0xFFFFFF); just some basic font render stuff, it's all inside the event listener I sent earlier. (DrawScreenEvent.Post)
-
Adding text to chest with a specific name
http://prntscr.com/jjyday This should be white, 0xFFFFFF or §f. All colors appear darker than they should for some reason.
-
Adding text to chest with a specific name
Btw. why does text look dark there?
-
Adding text to chest with a specific name
Oh oops, how did that get there
-
Adding text to chest with a specific name
@EventHandler public void renderChest(DrawScreenEvent e) { if (e.getGui() instanceof GuiChest) { System.out.println("ok"); } } Doesn't work for some reason
-
Adding text to chest with a specific name
I need to add text to the chest window when the name of the chest is equal to something. I guess I need an event that fires every tick or so when you are inside a chest, and then render the text somehow above it. Are there any good examples of the events I need to use in order to achieve something like this?
- Editing client side chat message
-
Editing client side chat message
Hi, hello. I need to send a chat message client side only. I do it like so sender.sendMessage(new TextComponentString... I would love to know if there is a way of editing the message after it is already sent. Is this possible without rewriting the whole messages GUI class?
IPS spam blocked by CleanTalk.