final long stackSize = itemStack.getStackSize(); final String renderedStackSize = NUMBER_CONVERTER.toWideReadableForm( stackSize ); // Render the item count final FontRenderer fr = Minecraft.getMinecraft().fontRenderer; final int width = fr.getStringWidth( renderedStackSize ); GlStateManager....
final String renderedStackSize = NUMBER_CONVERTER.toWideReadableForm( stackSize ); // Render the item count final FontRenderer fr = Minecraft.getMinecraft().fontRenderer; final int width = fr.getStringWidth( renderedStackSize ); GlStateManager.translate( 0.0f, spacing, 0 ); GlStateManager.sca...
map(CuboidConverter.instance()::toNative) .collect(Collectors.toList()) ); } ); } Example #9Source File: ContainerLifecycleCommands.java From mobycraft with Apache License 2.0 6 votes public void killChaosMonkeys() { World world = sender.getEntityWorld(); int numberOfMonkeys = 0; for (...