Skip to content

Instantly share code, notes, and snippets.

View CutestNekoAqua's full-sized avatar
🏳️‍⚧️
Trans-itioning ;d

April John CutestNekoAqua

🏳️‍⚧️
Trans-itioning ;d
View GitHub Profile
#Importierung der Bibliotheken
from PIL import Image
import numpy as np
import random
#Erstellung des Images
img = Image.new('RGB', (100, 100))
#Liste zur Speicherung der Pixel
array = np.empty((100*100,3))

request light engine, don't wait for response invalidate packet on update

  • High Level light api - chunk based: (look at batching from new chunk gen branch)
public class FullBrightLightGenerator implements LightGenerator {

@Override
public void lightChunk(ChunkLightBatch batch) {
 int offX = chunk.getX() * 16;
@CutestNekoAqua
CutestNekoAqua / ISchematic.java
Created December 31, 2021 20:36
Schematic Loading in Minestom
package me.hugo.kweebecparty.schem;
import net.minestom.server.coordinate.Point;
import org.jetbrains.annotations.NotNull;
public interface ISchematic {
ErrorMessage read();
ErrorMessage write(@NotNull Region region);
ErrorMessage build(@NotNull Point position, Runnable blocksCompleted);
<noscript><p title="</noscript><img src=x onerror=alert(1)>">
This file has been truncated, but you can view the full file.