Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Dragonisser

Forge Modder
  • Joined

  • Last visited

  1. Dragonisser changed their profile photo
  2. Its the exact same method and it does exist, i even tested it myself. worldIn.getEntitiesWithinAABB(playerIn.getClass(), boundingbox); World.getEntitiesWithinAABB(Class<? extends T> classEntity, AxisAlignedBB bb) Looks totally different.. not. /** * Gets all entities of the specified class type which intersect with the AABB. */ public <T extends Entity> List<T> getEntitiesWithinAABB(Class <? extends T > classEntity, AxisAlignedBB bb) { return this.<T>getEntitiesWithinAABB(classEntity, bb, EntitySelectors.NOT_SPECTATING); } public <T extends Entity> List<T> getEntitiesWithinAABB(Class <? extends T > clazz, AxisAlignedBB aabb, @Nullable Predicate <? super T > filter) { int i = MathHelper.floor((aabb.minX - MAX_ENTITY_RADIUS) / 16.0D); int j = MathHelper.ceil((aabb.maxX + MAX_ENTITY_RADIUS) / 16.0D); int k = MathHelper.floor((aabb.minZ - MAX_ENTITY_RADIUS) / 16.0D); int l = MathHelper.ceil((aabb.maxZ + MAX_ENTITY_RADIUS) / 16.0D); List<T> list = Lists.<T>newArrayList(); for (int i1 = i; i1 < j; ++i1) { for (int j1 = k; j1 < l; ++j1) { if (this.isChunkLoaded(i1, j1, true)) { this.getChunkFromChunkCoords(i1, j1).getEntitiesOfTypeWithinAABB(clazz, aabb, list, filter); } } } return list; } I might not be a master in java and modding minecraft, but im not retarded.
  3. No it shouldnt. It should only list all EntityPlayer(MP) List<T> net.minecraft.world.World.getEntitiesWithinAABB(Class<? extends T> classEntity, AxisAlignedBB bb) Gets all entities of the specified class type which intersect with the AABB. Type Parameters:<T> Parameters:classEntity bb
  4. Did you even read the forge server setup ... https://minecraft.gamepedia.com/Tutorials/Setting_up_a_Minecraft_Forge_server https://www.akliz.net/manage/knowledgebase/35/How-to-Install-a-Forge-Server.html
  5. net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from PinkMod (fpm) Caused by: java.lang.NullPointerException at com.flipking78.pinkmod.init.ModItems.registerRender(ModItems.java:24) at com.flipking78.pinkmod.init.ModItems.registerRenders(ModItems.java:28) at com.flipking78.pinkmod.proxy.ClientProxy.init(ClientProxy.java:9) at com.flipking78.pinkmod.PinkMod.preInit(PinkMod.java:27) 1. Stop spaming. You arent the king here which gets served first. 2. There are errors, if you would take a look at it you would see them 3. Post the goddamn code. How the hell should we know why i might crash if you dont even provide the code that crashes
  6. AxisAlignedBB boundingbox = new AxisAlignedBB(minX, minY, minZ, maxX, maxY, maxZ); List<Entity> entityList = worldIn.getEntitiesWithinAABB(playerIn.getClass(), boundingbox); for(int i = 0; i < entityList.size(); i++) { entity.get(i).sendMessage(new TextComponentString(player.getDisplayNameString() + " displays their MyNewItem")); } Parameters for the BoudingBox are "minX, minY, minZ, maxX, maxY, maxZ". So if you want to get all players in a cube of 20x20x20 around you, you would need to do. double minX = playerIn.posX - 10.0; double minY = playerIn.posY - 10.0; double minZ = playerIn.posZ - 10.0; double maxX = playerIn.posX + 10.0; double maxY = playerIn.posY + 10.0; double maxZ = playerIn.posZ + 10.0; The one below is probably more logical.
  7. I did it like this last time to open my backpack item via a keybind. It shouldnt be that much different from 1.7.10 to 1.12.2 https://github.com/Dragonisser/CobaltMod/blob/master/src/main/java/cobaltmod/handler/event/CobaltKeyHandler.java#L53 https://github.com/Dragonisser/CobaltMod/blob/master/src/main/java/cobaltmod/network/packet/server/CobaltOpenGuiMessage.java
  8. I posted the full code you need to make 1000 new tabs if you want to.
  9. Successfully trolled expert modder
  10. Still wondering what people think about not posting their full code or error log >_>
  11. https://github.com/Dragonisser/CobaltMod-2/blob/master/src/main/java/de/prwh/cobaltmod/core/CreativeTabCobalt.java https://github.com/Dragonisser/CobaltMod-2/blob/master/src/main/java/de/prwh/cobaltmod/core/CMMain.java#L38-L39
  12. Shouldnt the portal be placed in the dimension like it is in the overworld - hole facing north/south and then same when its made? https://github.com/Dragonisser/CobaltMod-2/commit/4b3b64cb15c54fb5f6dfa5a784bc0286d2c7fbf8
  13. Take a look at that. im not sure if it still works in the higher versions tho. https://github.com/Dragonisser/CobaltMod/blob/c2193858b867552420a0bd8b31dbdda05c867d3c/src/main/java/cobaltmod/handler/event/SpeedBootsHandler.java
  14. Im using my own batch called "setup_gradlew.bat" gradlew.bat setupDecompWorkspace --refresh-dependencies --debug & gradlew.bat eclipse

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.