Skip to content

Instantly share code, notes, and snippets.

View JabDoesThings's full-sized avatar
👋

Jab JabDoesThings

👋
  • United States
View GitHub Profile
@JabDoesThings
JabDoesThings / Example.lua
Last active May 10, 2024 18:03
[LuaCommand] - Template
--- This file serves as a template for creating and executing custom Lua commands using the LuaCommands patch
--- & workshop mod.
---
--- {FILES}
--- Java Patch: https://discord.gg/taP6ZxSTGJ
--- Workshop Mod: https://steamcommunity.com/workshop/filedetails/?id=3243738892
---
--- {DEVELOPER LINKS}
--- Workshop GitHub: https://github.com/asledgehammer/LuaCommands
--- Asledgehammer Discord: https://discord.gg/u3vWvcPX8f
@JabDoesThings
JabDoesThings / BitwiseOps.java
Created May 10, 2024 16:40
Bitwise Ops Support for Project Zomboid (Build 41.78.16)
package com.asledgehammer.craftnail.util;
public class BitwiseOps {
public static byte bnot8(long value) {
return (byte) ~(byte) value;
}
public static byte band8(long value, long mask) {
return (byte) ((byte) value & (byte) mask);
@JabDoesThings
JabDoesThings / security.yml
Created October 2, 2023 15:09
security.yml (French Translation)
# Ce fichier fait partie de CraftHammer.
#
# (Traduit de l’anglais vers le français)
#
# Auteur: Jab
# Version: 2
# Publié: 2/1/2022
__meta: { version: 2 }
# Tous les contrôles de sécurité sont gérés ici.
@JabDoesThings
JabDoesThings / ExampleUI.tsx
Created December 26, 2022 14:41
PipeWrench-UI: Tech Demo
/** @jsx PipeWrenchUI.createElement */
/** @noSelfInFile */
import * as Events from '@asledgehammer/pipewrench-events';
import { asRGBA, RGBA } from '../../shared/pipewrench-ui/css/color/RGBA';
import { easeInOut } from '../../shared/pipewrench-ui/css/math/Math';
import { PWUIElement } from '../../shared/pipewrench-ui/elements/PWUIElement';
import { OptionalElementFunction } from '../../shared/pipewrench-ui/PipeWrenchUI';
import { PipeWrenchUI, createUI } from '../../shared/pipewrench-ui/React';
@JabDoesThings
JabDoesThings / PluginDependent.java
Last active October 30, 2018 20:00
This is a wrapper for Listener classes that I use for Spigot's Listener API.
package jab.util.spigot;
import org.bukkit.plugin.java.JavaPlugin;
import jab.util.Printable;
/**
* This class is designed to clean up redundant JavaPlugin getters and setters.
*
* @author Jab
@JabDoesThings
JabDoesThings / MaterialHelper.java
Last active May 13, 2018 23:16
This utility helps with locating Minecraft Materials using both Bukkit's identification for Materials and the canonical ID's used to give items in MineCraft.
// Copyright (c) 2018, Joshua Edwards (Jab)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
@JabDoesThings
JabDoesThings / script.cs
Created December 3, 2017 19:34
Planetary Orbit Script (Outdated)
// Orbit Script by Jab (40BlocksUnder)
string configName = "OrbitSettings";
IMyTerminalBlock Block = null;
double px = 0;
double py = 0;
double pz = 0;
double radius = 0;
@JabDoesThings
JabDoesThings / Printable.java
Created August 11, 2017 19:00
A printable utility class.
package jab.util;
/**
* Interface designed to handle advanced printing. Only available in JDK8+.
*
* @author Jab
*
*/
public interface Printable {