Class UnknownPartEvent

java.lang.Object
org.cyclops.integrateddynamics.core.network.event.NetworkEvent
org.cyclops.integrateddynamics.core.network.event.UnknownPartEvent
All Implemented Interfaces:
INetworkEvent

public class UnknownPartEvent extends NetworkEvent
An event thrown when a network is loaded with invalid parts.
  • Constructor Details

    • UnknownPartEvent

      public UnknownPartEvent(INetwork network, String partTypeName)
  • Method Details

    • getPartType

      @Nullable public IPartType getPartType()
      Returns:
      The part type.
    • setPartType

      public void setPartType(IPartType partType)
      Set the part type to load instead.
      Parameters:
      partType - The part type to load.
    • getPartTypeName

      public String getPartTypeName()
      Returns:
      The part name that is being loaded but no corresponding part is found in the registry.