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

M.Chunk.Net

Description

Defines data types for chunk and lighting data used in network serialization. Includes block entities and packed coordinate representations.

Documentation

data ChunkData Source #

Constructors

ChunkData 

Instances

Instances details
Data ChunkData Source # 
Instance details

Defined in M.Chunk.Net

Methods

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

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

toConstr :: ChunkData -> Constr #

dataTypeOf :: ChunkData -> DataType #

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

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

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

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

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

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

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

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

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

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

Generic ChunkData Source # 
Instance details

Defined in M.Chunk.Net

Associated Types

type Rep ChunkData 
Instance details

Defined in M.Chunk.Net

type Rep ChunkData = D1 ('MetaData "ChunkData" "M.Chunk.Net" "mmm-0.1.0.0-oCDsNp3EBL2JzoyA6cTai" 'False) (C1 ('MetaCons "ChunkData" 'PrefixI 'True) (S1 ('MetaSel ('Just "cdhmaps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Tg) :*: (S1 ('MetaSel ('Just "cddata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "cdblockentities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector BlockEntity)))))
Read ChunkData Source # 
Instance details

Defined in M.Chunk.Net

Show ChunkData Source # 
Instance details

Defined in M.Chunk.Net

NFData ChunkData Source # 
Instance details

Defined in M.Chunk.Net

Methods

rnf :: ChunkData -> () #

Eq ChunkData Source # 
Instance details

Defined in M.Chunk.Net

Ord ChunkData Source # 
Instance details

Defined in M.Chunk.Net

Pack ChunkData Source # 
Instance details

Defined in M.Chunk.Net

Unpack ChunkData Source # 
Instance details

Defined in M.Chunk.Net

Methods

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

type Rep ChunkData Source # 
Instance details

Defined in M.Chunk.Net

type Rep ChunkData = D1 ('MetaData "ChunkData" "M.Chunk.Net" "mmm-0.1.0.0-oCDsNp3EBL2JzoyA6cTai" 'False) (C1 ('MetaCons "ChunkData" 'PrefixI 'True) (S1 ('MetaSel ('Just "cdhmaps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Tg) :*: (S1 ('MetaSel ('Just "cddata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "cdblockentities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector BlockEntity)))))

data BlockEntity Source #

Constructors

BlockEntity 

Fields

Instances

Instances details
Data BlockEntity Source # 
Instance details

Defined in M.Chunk.Net

Methods

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

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

toConstr :: BlockEntity -> Constr #

dataTypeOf :: BlockEntity -> DataType #

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

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

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

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

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

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

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

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

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

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

Generic BlockEntity Source # 
Instance details

Defined in M.Chunk.Net

Associated Types

type Rep BlockEntity 
Instance details

Defined in M.Chunk.Net

type Rep BlockEntity = D1 ('MetaData "BlockEntity" "M.Chunk.Net" "mmm-0.1.0.0-oCDsNp3EBL2JzoyA6cTai" 'False) (C1 ('MetaCons "BlockEntity" 'PrefixI 'True) ((S1 ('MetaSel ('Just "bexz") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (V2 Word8)) :*: S1 ('MetaSel ('Just "berelheight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int16)) :*: (S1 ('MetaSel ('Just "betype") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int32) :*: S1 ('MetaSel ('Just "bedata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Tg))))
Read BlockEntity Source # 
Instance details

Defined in M.Chunk.Net

Show BlockEntity Source # 
Instance details

Defined in M.Chunk.Net

NFData BlockEntity Source # 
Instance details

Defined in M.Chunk.Net

Methods

rnf :: BlockEntity -> () #

Eq BlockEntity Source # 
Instance details

Defined in M.Chunk.Net

Ord BlockEntity Source # 
Instance details

Defined in M.Chunk.Net

Pack BlockEntity Source # 
Instance details

Defined in M.Chunk.Net

Unpack BlockEntity Source # 
Instance details

Defined in M.Chunk.Net

Methods

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

type Rep BlockEntity Source # 
Instance details

Defined in M.Chunk.Net

type Rep BlockEntity = D1 ('MetaData "BlockEntity" "M.Chunk.Net" "mmm-0.1.0.0-oCDsNp3EBL2JzoyA6cTai" 'False) (C1 ('MetaCons "BlockEntity" 'PrefixI 'True) ((S1 ('MetaSel ('Just "bexz") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (V2 Word8)) :*: S1 ('MetaSel ('Just "berelheight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int16)) :*: (S1 ('MetaSel ('Just "betype") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int32) :*: S1 ('MetaSel ('Just "bedata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Tg))))

data LightData Source #

Instances

Instances details
Data LightData Source # 
Instance details

Defined in M.Chunk.Net

Methods

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

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

toConstr :: LightData -> Constr #

dataTypeOf :: LightData -> DataType #

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

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

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

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

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

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

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

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

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

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

Generic LightData Source # 
Instance details

Defined in M.Chunk.Net

Associated Types

type Rep LightData 
Instance details

Defined in M.Chunk.Net

Read LightData Source # 
Instance details

Defined in M.Chunk.Net

Show LightData Source # 
Instance details

Defined in M.Chunk.Net

NFData LightData Source # 
Instance details

Defined in M.Chunk.Net

Methods

rnf :: LightData -> () #

Eq LightData Source # 
Instance details

Defined in M.Chunk.Net

Ord LightData Source # 
Instance details

Defined in M.Chunk.Net

Pack LightData Source # 
Instance details

Defined in M.Chunk.Net

Unpack LightData Source # 
Instance details

Defined in M.Chunk.Net

Methods

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

type Rep LightData Source # 
Instance details

Defined in M.Chunk.Net