Package net.minecraft.world
Class Heightmap
java.lang.Object
net.minecraft.world.Heightmap
public class Heightmap extends Object
- Mappings:
Namespace Name official cmm
intermediary net/minecraft/class_2902
named net/minecraft/world/Heightmap
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Heightmap.Purpose
static class
Heightmap.Type
-
Field Summary
Fields Modifier and Type Field Description private Predicate<BlockState>
blockPredicate
private Chunk
chunk
private static Predicate<BlockState>
NOT_AIR
private PackedIntegerArray
storage
private static Predicate<BlockState>
SUFFOCATES
-
Constructor Summary
Constructors Constructor Description Heightmap(Chunk chunk, Heightmap.Type type)
-
Method Summary
Modifier and Type Method Description long[]
asLongArray()
private int
get(int index)
int
get(int x, int z)
static void
populateHeightmaps(Chunk chunk, Set<Heightmap.Type> types)
private void
set(int x, int z, int height)
void
setTo(long[] heightmap)
private static int
toIndex(int x, int z)
boolean
trackUpdate(int x, int y, int z, BlockState state)
-
Field Details
-
NOT_AIR
- Mappings:
Namespace Name Mixin selector official a
Lcmm;a:Ljava/util/function/Predicate;
intermediary field_16744
Lnet/minecraft/class_2902;field_16744:Ljava/util/function/Predicate;
named NOT_AIR
Lnet/minecraft/world/Heightmap;NOT_AIR:Ljava/util/function/Predicate;
-
SUFFOCATES
- Mappings:
Namespace Name Mixin selector official b
Lcmm;b:Ljava/util/function/Predicate;
intermediary field_16745
Lnet/minecraft/class_2902;field_16745:Ljava/util/function/Predicate;
named SUFFOCATES
Lnet/minecraft/world/Heightmap;SUFFOCATES:Ljava/util/function/Predicate;
-
storage
- Mappings:
Namespace Name Mixin selector official c
Lcmm;c:Lafi;
intermediary field_13192
Lnet/minecraft/class_2902;field_13192:Lnet/minecraft/class_3508;
named storage
Lnet/minecraft/world/Heightmap;storage:Lnet/minecraft/util/collection/PackedIntegerArray;
-
blockPredicate
- Mappings:
Namespace Name Mixin selector official d
Lcmm;d:Ljava/util/function/Predicate;
intermediary field_13193
Lnet/minecraft/class_2902;field_13193:Ljava/util/function/Predicate;
named blockPredicate
Lnet/minecraft/world/Heightmap;blockPredicate:Ljava/util/function/Predicate;
-
chunk
- Mappings:
Namespace Name Mixin selector official e
Lcmm;e:Lcjl;
intermediary field_13191
Lnet/minecraft/class_2902;field_13191:Lnet/minecraft/class_2791;
named chunk
Lnet/minecraft/world/Heightmap;chunk:Lnet/minecraft/world/chunk/Chunk;
-
-
Constructor Details
-
Heightmap
- Mappings:
Namespace Name Mixin selector official <init>
Lcmm;<init>(Lcjl;Lcmm$a;)V
intermediary <init>
Lnet/minecraft/class_2902;<init>(Lnet/minecraft/class_2791;Lnet/minecraft/class_2902$class_2903;)V
named <init>
Lnet/minecraft/world/Heightmap;<init>(Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/world/Heightmap$Type;)V
-
-
Method Details
-
populateHeightmaps
- Mappings:
Namespace Name Mixin selector official a
Lcmm;a(Lcjl;Ljava/util/Set;)V
intermediary method_16684
Lnet/minecraft/class_2902;method_16684(Lnet/minecraft/class_2791;Ljava/util/Set;)V
named populateHeightmaps
Lnet/minecraft/world/Heightmap;populateHeightmaps(Lnet/minecraft/world/chunk/Chunk;Ljava/util/Set;)V
-
trackUpdate
- Mappings:
Namespace Name Mixin selector official a
Lcmm;a(IIILcht;)Z
intermediary method_12597
Lnet/minecraft/class_2902;method_12597(IIILnet/minecraft/class_2680;)Z
named trackUpdate
Lnet/minecraft/world/Heightmap;trackUpdate(IIILnet/minecraft/block/BlockState;)Z
-
get
public int get(int x, int z)- Mappings:
Namespace Name Mixin selector official a
Lcmm;a(II)I
intermediary method_12603
Lnet/minecraft/class_2902;method_12603(II)I
named get
Lnet/minecraft/world/Heightmap;get(II)I
-
get
private int get(int index)- Mappings:
Namespace Name Mixin selector official a
Lcmm;a(I)I
intermediary method_12601
Lnet/minecraft/class_2902;method_12601(I)I
named get
Lnet/minecraft/world/Heightmap;get(I)I
-
set
private void set(int x, int z, int height)- Mappings:
Namespace Name Mixin selector official a
Lcmm;a(III)V
intermediary method_12602
Lnet/minecraft/class_2902;method_12602(III)V
named set
Lnet/minecraft/world/Heightmap;set(III)V
-
setTo
public void setTo(long[] heightmap)- Mappings:
Namespace Name Mixin selector official a
Lcmm;a([J)V
intermediary method_12600
Lnet/minecraft/class_2902;method_12600([J)V
named setTo
Lnet/minecraft/world/Heightmap;setTo([J)V
-
asLongArray
public long[] asLongArray()- Mappings:
Namespace Name Mixin selector official a
Lcmm;a()[J
intermediary method_12598
Lnet/minecraft/class_2902;method_12598()[J
named asLongArray
Lnet/minecraft/world/Heightmap;asLongArray()[J
-
toIndex
private static int toIndex(int x, int z)- Mappings:
Namespace Name Mixin selector official c
Lcmm;c(II)I
intermediary method_12595
Lnet/minecraft/class_2902;method_12595(II)I
named toIndex
Lnet/minecraft/world/Heightmap;toIndex(II)I
-