mmm-0.1.0.0: Minecraft 1.21.4 implementation in Haskell
Copyright(c) axionbuster 2025
LicenseBSD-3-Clause
Safe HaskellNone
LanguageGHC2021

M.Misc

Description

Defines common types used across the Minecraft protocol implementation, including teleportation flags and sound events.

Synopsis

Documentation

data TeleportFlags Source #

flags for teleporting an entity

16+ bits

Constructors

TeleportFlags 

Fields

Instances

Instances details
Data TeleportFlags Source # 
Instance details

Defined in M.Misc

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TeleportFlags -> c TeleportFlags #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TeleportFlags #

toConstr :: TeleportFlags -> Constr #

dataTypeOf :: TeleportFlags -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TeleportFlags) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TeleportFlags) #

gmapT :: (forall b. Data b => b -> b) -> TeleportFlags -> TeleportFlags #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TeleportFlags -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TeleportFlags -> r #

gmapQ :: (forall d. Data d => d -> u) -> TeleportFlags -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TeleportFlags -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TeleportFlags -> m TeleportFlags #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TeleportFlags -> m TeleportFlags #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TeleportFlags -> m TeleportFlags #

Generic TeleportFlags Source # 
Instance details

Defined in M.Misc

Read TeleportFlags Source # 
Instance details

Defined in M.Misc

Show TeleportFlags Source # 
Instance details

Defined in M.Misc

NFData TeleportFlags Source # 
Instance details

Defined in M.Misc

Methods

rnf :: TeleportFlags -> () #

Eq TeleportFlags Source # 
Instance details

Defined in M.Misc

Ord TeleportFlags Source # 
Instance details

Defined in M.Misc

Hashable TeleportFlags Source # 
Instance details

Defined in M.Misc

(Bits i, Integral i, Pack i, Unpack i) => Bitreppable i TeleportFlags Source #

do NOT use 8-bit packing for this type. use a type that is at least 16 bits wide

Instance details

Defined in M.Misc

Lift TeleportFlags Source # 
Instance details

Defined in M.Misc

Methods

lift :: Quote m => TeleportFlags -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => TeleportFlags -> Code m TeleportFlags #

type Rep TeleportFlags Source # 
Instance details

Defined in M.Misc

data SoundEvent Source #

Constructors

SoundEvent 

Instances

Instances details
Data SoundEvent Source # 
Instance details

Defined in M.Misc

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SoundEvent -> c SoundEvent #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SoundEvent #

toConstr :: SoundEvent -> Constr #

dataTypeOf :: SoundEvent -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SoundEvent) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SoundEvent) #

gmapT :: (forall b. Data b => b -> b) -> SoundEvent -> SoundEvent #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SoundEvent -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SoundEvent -> r #

gmapQ :: (forall d. Data d => d -> u) -> SoundEvent -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SoundEvent -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SoundEvent -> m SoundEvent #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SoundEvent -> m SoundEvent #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SoundEvent -> m SoundEvent #

Generic SoundEvent Source # 
Instance details

Defined in M.Misc

Associated Types

type Rep SoundEvent 
Instance details

Defined in M.Misc

type Rep SoundEvent = D1 ('MetaData "SoundEvent" "M.Misc" "mmm-0.1.0.0-oCDsNp3EBL2JzoyA6cTai" 'False) (C1 ('MetaCons "SoundEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "soundname") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "fixedrange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Float))))
Read SoundEvent Source # 
Instance details

Defined in M.Misc

Show SoundEvent Source # 
Instance details

Defined in M.Misc

NFData SoundEvent Source # 
Instance details

Defined in M.Misc

Methods

rnf :: SoundEvent -> () #

Eq SoundEvent Source # 
Instance details

Defined in M.Misc

Ord SoundEvent Source # 
Instance details

Defined in M.Misc

Hashable SoundEvent Source # 
Instance details

Defined in M.Misc

Pack SoundEvent Source # 
Instance details

Defined in M.Misc

Unpack SoundEvent Source # 
Instance details

Defined in M.Misc

Methods

unpack :: forall (st :: ZeroBitType) r. Parser st r SoundEvent Source #

Lift SoundEvent Source # 
Instance details

Defined in M.Misc

Methods

lift :: Quote m => SoundEvent -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => SoundEvent -> Code m SoundEvent #

type Rep SoundEvent Source # 
Instance details

Defined in M.Misc

type Rep SoundEvent = D1 ('MetaData "SoundEvent" "M.Misc" "mmm-0.1.0.0-oCDsNp3EBL2JzoyA6cTai" 'False) (C1 ('MetaCons "SoundEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "soundname") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "fixedrange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Float))))