Copyright | (c) axionbuster 2025 |
---|---|
License | BSD-3-Clause |
Safe Haskell | None |
Language | GHC2021 |
Defines data types for chunk and lighting data used in network serialization. Includes block entities and packed coordinate representations.
Documentation
ChunkData | |
|
Instances
data BlockEntity Source #
Instances
Data BlockEntity Source # | |||||
Defined in M.Chunk.Net 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 # | |||||
Defined in M.Chunk.Net
from :: BlockEntity -> Rep BlockEntity x # to :: Rep BlockEntity x -> BlockEntity # | |||||
Read BlockEntity Source # | |||||
Defined in M.Chunk.Net readsPrec :: Int -> ReadS BlockEntity # readList :: ReadS [BlockEntity] # readPrec :: ReadPrec BlockEntity # readListPrec :: ReadPrec [BlockEntity] # | |||||
Show BlockEntity Source # | |||||
Defined in M.Chunk.Net showsPrec :: Int -> BlockEntity -> ShowS # show :: BlockEntity -> String # showList :: [BlockEntity] -> ShowS # | |||||
NFData BlockEntity Source # | |||||
Defined in M.Chunk.Net rnf :: BlockEntity -> () # | |||||
Eq BlockEntity Source # | |||||
Defined in M.Chunk.Net (==) :: BlockEntity -> BlockEntity -> Bool # (/=) :: BlockEntity -> BlockEntity -> Bool # | |||||
Ord BlockEntity Source # | |||||
Defined in M.Chunk.Net compare :: BlockEntity -> BlockEntity -> Ordering # (<) :: BlockEntity -> BlockEntity -> Bool # (<=) :: BlockEntity -> BlockEntity -> Bool # (>) :: BlockEntity -> BlockEntity -> Bool # (>=) :: BlockEntity -> BlockEntity -> Bool # max :: BlockEntity -> BlockEntity -> BlockEntity # min :: BlockEntity -> BlockEntity -> BlockEntity # | |||||
Pack BlockEntity Source # | |||||
Defined in M.Chunk.Net pack :: BlockEntity -> Builder Source # | |||||
Unpack BlockEntity Source # | |||||
Defined in M.Chunk.Net unpack :: forall (st :: ZeroBitType) r. Parser st r BlockEntity Source # | |||||
type Rep BlockEntity Source # | |||||
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)))) |
LightData | |
|
Instances
Data LightData Source # | |||||
Defined in M.Chunk.Net 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 # | |||||
Defined in M.Chunk.Net
| |||||
Read LightData Source # | |||||
Show LightData Source # | |||||
NFData LightData Source # | |||||
Defined in M.Chunk.Net | |||||
Eq LightData Source # | |||||
Ord LightData Source # | |||||
Defined in M.Chunk.Net | |||||
Pack LightData Source # | |||||
Unpack LightData Source # | |||||
Defined in M.Chunk.Net | |||||
type Rep LightData Source # | |||||
Defined in M.Chunk.Net type Rep LightData = D1 ('MetaData "LightData" "M.Chunk.Net" "mmm-0.1.0.0-oCDsNp3EBL2JzoyA6cTai" 'False) (C1 ('MetaCons "LightData" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ldskymask") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bitset) :*: (S1 ('MetaSel ('Just "ldblockmask") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bitset) :*: S1 ('MetaSel ('Just "ld0skymask") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bitset))) :*: (S1 ('MetaSel ('Just "ld0blockmask") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bitset) :*: (S1 ('MetaSel ('Just "ldskylights") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector ByteString)) :*: S1 ('MetaSel ('Just "ldblocklights") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector ByteString)))))) |