mirror of https://github.com/kami-blue/client
[cleanup] Unused parameter warnings
This commit is contained in:
parent
e48ed129cb
commit
ad149c963e
|
@ -22,6 +22,6 @@ public class MixinStateImplementation {
|
|||
|
||||
@Inject(method = "addCollisionBoxToList", at = @At("HEAD"), cancellable = true)
|
||||
public void addCollisionBoxToList(World worldIn, BlockPos pos, AxisAlignedBB entityBox, List<AxisAlignedBB> collidingBoxes, Entity entityIn, boolean isActualState, CallbackInfo ci) {
|
||||
Jesus.handleAddCollisionBoxToList(pos, block, entityIn, entityBox, collidingBoxes);
|
||||
Jesus.handleAddCollisionBoxToList(pos, block, entityIn, collidingBoxes);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,6 +44,7 @@ class KamiMod {
|
|||
var ready: Boolean = false; private set
|
||||
}
|
||||
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
@Mod.EventHandler
|
||||
fun preInit(event: FMLPreInitializationEvent) {
|
||||
val directory = File(DIRECTORY)
|
||||
|
@ -53,6 +54,7 @@ class KamiMod {
|
|||
LoaderWrapper.preLoadAll()
|
||||
}
|
||||
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
@Mod.EventHandler
|
||||
fun init(event: FMLInitializationEvent) {
|
||||
LOG.info("Initializing $NAME $VERSION")
|
||||
|
@ -69,6 +71,7 @@ class KamiMod {
|
|||
LOG.info("$NAME initialized!")
|
||||
}
|
||||
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
@Mod.EventHandler
|
||||
fun postInit(event: FMLPostInitializationEvent) {
|
||||
ready = true
|
||||
|
|
|
@ -34,7 +34,7 @@ internal object KamiMoji : Module(
|
|||
if (index == -1) continue
|
||||
|
||||
val x = mc.fontRenderer.getStringWidth(text.substring(0, index)) + fontHeight / 4
|
||||
drawEmoji(texture, (posX + x).toDouble(), posY.toDouble(), fontHeight.toFloat(), alpha)
|
||||
drawEmoji(texture, (posX + x).toDouble(), posY.toDouble(), fontHeight.toFloat())
|
||||
}
|
||||
|
||||
text = text.replaceFirst(emojiText, getReplacement(fontHeight))
|
||||
|
@ -70,7 +70,7 @@ internal object KamiMoji : Module(
|
|||
}
|
||||
|
||||
/* This is created because vanilla one doesn't take double position input */
|
||||
private fun drawEmoji(texture: MipmapTexture, x: Double, y: Double, size: Float, alpha: Float) {
|
||||
private fun drawEmoji(texture: MipmapTexture, x: Double, y: Double, size: Float) {
|
||||
val tessellator = Tessellator.getInstance()
|
||||
val bufBuilder = tessellator.buffer
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ internal object Jesus : Module(
|
|||
}
|
||||
|
||||
@JvmStatic
|
||||
fun handleAddCollisionBoxToList(pos: BlockPos, block: Block, entity: Entity?, entityBox: AxisAlignedBB, collidingBoxes: MutableList<AxisAlignedBB>) {
|
||||
fun handleAddCollisionBoxToList(pos: BlockPos, block: Block, entity: Entity?, collidingBoxes: MutableList<AxisAlignedBB>) {
|
||||
if (isDisabled || mode == Mode.DOLPHIN) return
|
||||
if (mc.gameSettings.keyBindSneak.isKeyDown) return
|
||||
if (block !is BlockLiquid) return
|
||||
|
|
Loading…
Reference in New Issue