Search in sources :

Example 1 with PluggableFacade

use of buildcraft.transport.plug.PluggableFacade in project BuildCraft by BuildCraft.

the class ItemPluggableFacade method onPlace.

@Override
public PipePluggable onPlace(@Nonnull ItemStack stack, IPipeHolder holder, EnumFacing side, EntityPlayer player, EnumHand hand) {
    FacadeInstance fullState = getStates(stack);
    SoundUtil.playBlockPlace(holder.getPipeWorld(), holder.getPipePos(), fullState.phasedStates[0].stateInfo.state);
    return new PluggableFacade(BCTransportPlugs.facade, holder, side, fullState);
}
Also used : FacadeInstance(buildcraft.transport.plug.FacadeInstance) PluggableFacade(buildcraft.transport.plug.PluggableFacade)

Aggregations

FacadeInstance (buildcraft.transport.plug.FacadeInstance)1 PluggableFacade (buildcraft.transport.plug.PluggableFacade)1