Package net.minecraft.world.chunk
Interface PaletteResizeListener<T>
- All Known Implementing Classes:
PalettedContainer
public interface PaletteResizeListener<T>
A listener for when a palette requires more bits to hold a newly indexed
object. A no-op listener may be used if the palette does not have to
resize.
- See Also:
- Mappings:
Namespace Name named net/minecraft/world/chunk/PaletteResizeListenerintermediary net/minecraft/class_2835official elf
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> PaletteResizeListener<T> intCallback for a palette's request to resize to at leastnewBitsfor each entry and to update the storage correspondingly in order to accommodate the new object.
-
Method Details
-
onResize
Callback for a palette's request to resize to at leastnewBitsfor each entry and to update the storage correspondingly in order to accommodate the new object. After the resize is completed in this method, returns the ID assigned to theobjectin the updated palette.- Returns:
- the ID for the
objectin the (possibly new) palette - Mappings:
Namespace Name Mixin selector named onResizeLnet/minecraft/world/chunk/PaletteResizeListener;onResize(ILjava/lang/Object;)Iintermediary onResizeLnet/minecraft/class_2835;onResize(ILjava/lang/Object;)Iofficial onResizeLelf;onResize(ILjava/lang/Object;)I
-
method_74153
- Mappings:
Namespace Name Mixin selector named method_74153Lnet/minecraft/world/chunk/PaletteResizeListener;method_74153()Lnet/minecraft/world/chunk/PaletteResizeListener;intermediary method_74153Lnet/minecraft/class_2835;method_74153()Lnet/minecraft/class_2835;official aLelf;a()Lelf;
-