This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local IS_PZ = instanceof ~= nil; | |
-- Create our coroutine by passing a function to execute, from start to finish. | |
local thread = coroutine.create(function() | |
local result = 0; | |
for i = 0, 100, 1 do | |
-- Perform next pass. | |
result = result + i; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Creates a read-only object, much like frozen objects in JavaScript. | |
-- | |
-- Example: | |
-- | |
-- local readonly = require 'readonly'; | |
-- // Cannot modify. | |
-- local object = readonly({ pi = math.PI }); | |
-- | |
-- | |
-- @author asledgehammer, JabDoesThings 2024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- This script handles additional events for managing players logging in and | |
-- out of multiplayer servers. (Server-Side) | |
-- | |
-- Events: | |
-- - void OnServerPlayerLogin(IsoPlayer player) | |
-- - void OnServerPlayerLogout(IsoPlayer player) | |
-- | |
-- @author asledgehammer, JabDoesThings 2024 | |
-- Only run on servers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.asledgehammer; | |
import javax.imageio.ImageIO; | |
import java.awt.image.BufferedImage; | |
import java.io.*; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
public class TexturePack { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is part of Craftboid. | |
# | |
# Author: Jab | |
# Version: 2 | |
# Published: 2/1/2022 | |
__meta: { version: 2 } | |
# All security checks are managed here. | |
security_checks: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @noSelfInFile */ | |
export function parse(text: string): any; | |
export function stringify(value: any): string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @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'; |
NewerOlder