All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minecraft.server.BlockActionData Maven / Gradle / Ivy

package net.minecraft.server;

public class BlockActionData {

  private final BlockPosition a;
  private final Block b;
  private final int c;
  private final int d;

  public BlockActionData(BlockPosition blockposition, Block block, int i, int j) {
    this.a = blockposition;
    this.c = i;
    this.d = j;
    this.b = block;
  }

  public BlockPosition a() {
    return this.a;
  }

  public int b() {
    return this.c;
  }

  public int c() {
    return this.d;
  }

  public Block d() {
    return this.b;
  }

  public boolean equals(Object object) {
    if (!(object instanceof BlockActionData)) {
      return false;
    } else {
      BlockActionData blockactiondata = (BlockActionData) object;

      return this.a.equals(blockactiondata.a) && this.c == blockactiondata.c && this.d == blockactiondata.d && this.b == blockactiondata.b;
    }
  }

  public String toString() {
    return "TE(" + this.a + ")," + this.c + "," + this.d + "," + this.b;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy