Package net.minecraft.world.storage
Class MapBanner
- java.lang.Object
-
- net.minecraft.world.storage.MapBanner
-
public class MapBanner extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MapBanner(BlockPos p_i48876_1_, DyeColor p_i48876_2_, ITextComponent p_i48876_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object p_equals_1_)
static MapBanner
fromWorld(IBlockReader p_204301_0_, BlockPos p_204301_1_)
MapDecoration.Type
getDecoration()
java.lang.String
getId()
ITextComponent
getName()
BlockPos
getPos()
int
hashCode()
static MapBanner
load(CompoundNBT p_204300_0_)
CompoundNBT
save()
-
-
-
Field Detail
-
pos
private final BlockPos pos
-
color
private final DyeColor color
-
name
@Nullable private final ITextComponent name
-
-
Constructor Detail
-
MapBanner
public MapBanner(BlockPos p_i48876_1_, DyeColor p_i48876_2_, @Nullable ITextComponent p_i48876_3_)
-
-
Method Detail
-
load
public static MapBanner load(CompoundNBT p_204300_0_)
-
fromWorld
@Nullable public static MapBanner fromWorld(IBlockReader p_204301_0_, BlockPos p_204301_1_)
-
getPos
public BlockPos getPos()
-
getDecoration
public MapDecoration.Type getDecoration()
-
getName
@Nullable public ITextComponent getName()
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
save
public CompoundNBT save()
-
getId
public java.lang.String getId()
-
-