Exemple #1
0
    public bool toggleSide(BlockFacing side)//, PlayerEntity player
    {
        if (Api is ICoreServerAPI)
        {
            sideConfig[side] = sideConfig[side].next();

            Api.World.BlockAccessor.ExchangeBlock(Api.World.GetBlock(Block.CodeWithVariant(side.ToString(), sideConfig[side].toString())).BlockId, Pos);
        }

        //MarkDirty();
        return(true);
    }