java.lang.ClassCastException: net.bdew.pressure.blocks.gas.TileTankGasInput cannot be cast to mekanism.api.gas.IGasHandler

GitHub | bdew | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    PartPressurizedTube.getCachedAcceptor casting TE to capability

    GitHub | 6 months ago | bdew
    java.lang.ClassCastException: net.bdew.pressure.blocks.gas.TileTankGasInput cannot be cast to mekanism.api.gas.IGasHandler

    Root Cause Analysis

    1. java.lang.ClassCastException

      net.bdew.pressure.blocks.gas.TileTankGasInput cannot be cast to mekanism.api.gas.IGasHandler

      at mekanism.common.multipart.PartPressurizedTube.getCachedAcceptor()
    2. mekanism.common.multipart
      MultipartTransmitter.getAcceptor
      1. mekanism.common.multipart.PartPressurizedTube.getCachedAcceptor(PartPressurizedTube.java:270)
      2. mekanism.common.multipart.PartPressurizedTube.getCachedAcceptor(PartPressurizedTube.java:24)
      3. mekanism.common.multipart.MultipartTransmitter.getAcceptor(MultipartTransmitter.java:72)
      3 frames
    3. mekanism.api.transmitters
      TransmitterNetworkRegistry.onTick
      1. mekanism.api.transmitters.DynamicNetwork.updateTransmitterOnSide(DynamicNetwork.java:109)
      2. mekanism.api.transmitters.DynamicNetwork.commit(DynamicNetwork.java:71)
      3. mekanism.api.transmitters.TransmitterNetworkRegistry.commitChanges(TransmitterNetworkRegistry.java:202)
      4. mekanism.api.transmitters.TransmitterNetworkRegistry.tickEnd(TransmitterNetworkRegistry.java:101)
      5. mekanism.api.transmitters.TransmitterNetworkRegistry.onTick(TransmitterNetworkRegistry.java:91)
      5 frames
    4. MC Forge
      FMLCommonHandler.onPostServerTick
      1. net.minecraftforge.fml.common.eventhandler.ASMEventHandler_200_TransmitterNetworkRegistry_onTick_ServerTickEvent.invoke(.dynamic)
      2. net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:72)
      3. net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:168)
      4. net.minecraftforge.fml.common.FMLCommonHandler.onPostServerTick(FMLCommonHandler.java:261)
      4 frames
    5. MC Server
      MinecraftServer.run
      1. net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:731)
      2. net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:156)
      3. net.minecraft.server.MinecraftServer.run(MinecraftServer.java:536)
      3 frames
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame