Example #1
0
        protected override async Task <BlockState> ConvertToBlock(IEntity entity, IGrainFactory grainFactory, IWorld world, BlockWorldPos position, Slot slot)
        {
            var facing = ChestBlockHandler.PlayerYawToFacing(await entity.GetYaw());

            return(BlockStates.Furnace((FurnaceFacingType)facing, FurnaceLitType.False));
        }
Example #2
0
        protected override async Task <BlockState> ConvertToBlock(IPlayer player, IGrainFactory grainFactory, IWorld world, BlockWorldPos position, Slot slot)
        {
            var facing = ChestBlockHandler.PlayerYawToFacing(await player.GetYaw());

            return(BlockStates.Furnace(facing));
        }