Search in sources :

Example 1 with FunnelFlapPacket

use of com.simibubi.create.content.logistics.packet.FunnelFlapPacket in project Create by Creators-of-Create.

the class FunnelTileEntity method flap.

public void flap(boolean inward) {
    if (!level.isClientSide) {
        AllPackets.channel.send(packetTarget(), new FunnelFlapPacket(this, inward));
    } else {
        flap.set(inward ? 1 : -1);
        AllSoundEvents.FUNNEL_FLAP.playAt(level, worldPosition, 1, 1, true);
    }
}
Also used : FunnelFlapPacket(com.simibubi.create.content.logistics.packet.FunnelFlapPacket)

Aggregations

FunnelFlapPacket (com.simibubi.create.content.logistics.packet.FunnelFlapPacket)1