Example #1
0
        public override bool OnBlockInteractStart(IWorldAccessor world, IPlayer byPlayer, BlockSelection blockSel)
        {
            BEBrake bebrake = world.BlockAccessor.GetBlockEntity(blockSel.Position) as BEBrake;

            return(bebrake?.OnInteract(byPlayer) == true);
        }
 public BEBehaviorMPBrake(BlockEntity blockentity) : base(blockentity)
 {
     bebrake = blockentity as BEBrake;
 }