Copyright | (c) axionbuster 2025 |
---|---|
License | BSD-3-Clause |
Safe Haskell | None |
Language | GHC2021 |
Provides types and functions for working with Minecraft's NBT format, which is used for storing structured binary data.
Documentation
NBT tag types
TEnd | special type for the end of a compound tag |
TByte | |
TShort | |
TInt | |
TLong | |
TFloat | |
TDouble | |
TByteArray | |
TString | |
TList | |
TCompound | |
TIntArray | |
TLongArray |
Instances
Data Ty Source # | |||||
Defined in M.NBT.Internal.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Ty -> c Ty # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Ty # dataTypeOf :: Ty -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Ty) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Ty) # gmapT :: (forall b. Data b => b -> b) -> Ty -> Ty # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Ty -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Ty -> r # gmapQ :: (forall d. Data d => d -> u) -> Ty -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Ty -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Ty -> m Ty # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Ty -> m Ty # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Ty -> m Ty # | |||||
Bounded Ty Source # | |||||
Enum Ty Source # | |||||
Generic Ty Source # | |||||
Defined in M.NBT.Internal.Types
| |||||
Read Ty Source # | |||||
Show Ty Source # | |||||
NFData Ty Source # | |||||
Defined in M.NBT.Internal.Types | |||||
Eq Ty Source # | |||||
Ord Ty Source # | |||||
Hashable Ty Source # | |||||
Defined in M.NBT.Internal.Types | |||||
Pack Ty Source # | |||||
Unpack Ty Source # | |||||
Defined in M.NBT.Internal.Types | |||||
Lift Ty Source # | |||||
type Rep Ty Source # | |||||
Defined in M.NBT.Internal.Types type Rep Ty = D1 ('MetaData "Ty" "M.NBT.Internal.Types" "mmm-0.1.0.0-oCDsNp3EBL2JzoyA6cTai" 'False) (((C1 ('MetaCons "TEnd" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TByte" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TShort" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "TInt" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TLong" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TFloat" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "TDouble" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TByteArray" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TString" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "TList" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TCompound" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "TIntArray" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TLongArray" 'PrefixI 'False) (U1 :: Type -> Type))))) |
NBT tag
End :: Tg | used for internal purposes only |
Byte :: Int8 -> Tg | |
Short :: Int16 -> Tg | |
Int :: Int32 -> Tg | |
Long :: Int64 -> Tg | |
Float :: Float -> Tg | |
Double :: Double -> Tg | |
ByteArray :: ByteString -> Tg | |
String :: Text -> Tg | |
List :: Ty -> Vector Tg -> Tg | a homogeneous list of tags |
Compound :: HashMap Text Tg -> Tg | |
IntArray :: Vector Int32 -> Tg | |
LongArray :: Vector Int64 -> Tg |
Instances
Instances
Data NamedPair Source # | |||||
Defined in M.NBT.Internal.P gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> NamedPair -> c NamedPair # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c NamedPair # toConstr :: NamedPair -> Constr # dataTypeOf :: NamedPair -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c NamedPair) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c NamedPair) # gmapT :: (forall b. Data b => b -> b) -> NamedPair -> NamedPair # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> NamedPair -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> NamedPair -> r # gmapQ :: (forall d. Data d => d -> u) -> NamedPair -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> NamedPair -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> NamedPair -> m NamedPair # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> NamedPair -> m NamedPair # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> NamedPair -> m NamedPair # | |||||
Generic NamedPair Source # | |||||
Defined in M.NBT.Internal.P
| |||||
Read NamedPair Source # | |||||
Show NamedPair Source # | |||||
NFData NamedPair Source # | |||||
Defined in M.NBT.Internal.P | |||||
Eq NamedPair Source # | |||||
Ord NamedPair Source # | |||||
Defined in M.NBT.Internal.P | |||||
Pack NamedPair Source # | |||||
Unpack NamedPair Source # | |||||
Defined in M.NBT.Internal.P | |||||
type Rep NamedPair Source # | |||||
Defined in M.NBT.Internal.P type Rep NamedPair = D1 ('MetaData "NamedPair" "M.NBT.Internal.P" "mmm-0.1.0.0-oCDsNp3EBL2JzoyA6cTai" 'False) (C1 ('MetaCons "NamedPair" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Tg))) |