Package zombie

Class MapCollisionData.Chunk

java.lang.Object
zombie.MapCollisionData.Chunk
Enclosing class:
MapCollisionData

public static class MapCollisionData.Chunk
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    byte[] data  
    byte type  
  • Constructor Summary

    Constructors
    Constructor Description
    Chunk()  
  • Method Summary

    Modifier and Type Method Description
    int getBits​(int x, int y)  
    int getType()  
    MapCollisionData.Chunk init​(int wx, int wy)  
    boolean isBlocked​(int blockedBits)  
    boolean load​(java.io.DataInputStream in, int version)  
    void save​(java.io.DataOutputStream out)  
    int setBits​(int x, int y, int bits)  
    boolean setData​(byte[] data)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • type

      public byte type
    • data

      public byte[] data
  • Constructor Details

    • Chunk

      public Chunk()
  • Method Details

    • init

      public MapCollisionData.Chunk init​(int wx, int wy)
    • load

      public boolean load​(java.io.DataInputStream in, int version)
    • save

      public void save​(java.io.DataOutputStream out) throws java.io.IOException
      Throws:
      java.io.IOException
    • getBits

      public int getBits​(int x, int y)
    • setBits

      public int setBits​(int x, int y, int bits)
    • setData

      public boolean setData​(byte[] data)
    • getType

      public int getType()
    • isBlocked

      public boolean isBlocked​(int blockedBits)