use of buildcraft.api.transport.pipe_bc8.event_bc8.IPipeEventConnection_BC8 in project BuildCraft by BuildCraft.
the class BehaviourWood method onPipeAttemptConnect.
@BCPipeEventHandler
public void onPipeAttemptConnect(IPipeEventConnection_BC8.AttemptCreate event) {
if (event instanceof IPipeEventConnection_BC8.AttemptCreate.Pipe) {
AttemptCreate.Pipe pipeEvent = (AttemptCreate.Pipe) event;
PipeBehaviour_BC8 other = pipeEvent.with().getBehaviour();
if (other instanceof BehaviourWood) {
event.disallow();
}
}
}
Aggregations