public void setEffectsTexture(Texture newEffectsTexture) { if ((effectsTexture.getWidth() == newEffectsTexture.getWidth()) && (effectsTexture.getHeight() == newEffectsTexture.getHeight())) { this.effectsTexture = newEffectsTexture; } else { // This should not be possible with the current BlockSelectionRenderSystem implementation throw new RuntimeException( "New effectsTexture must have same height and width as the original effectsTexture"); } }